Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
This attribute can be used to pass different flags down the tokenizer chain, eg from one TokenFilter to another one. More...
Inherits Lucene.Net.Util.Attribute, Lucene.Net.Analysis.Tokenattributes.IFlagsAttribute, and ICloneable.
Public Member Functions | |
override void | Clear () |
Clears the values in this AttributeImpl and resets it to its default value. If this implementation implements more than one Attribute interface it clears all. | |
override bool | Equals (System.Object other) |
All values used for computation of GetHashCode() should be checked here for equality. | |
override int | GetHashCode () |
Subclasses must implement this method and should compute a hashCode similar to this: | |
override void | CopyTo (Attribute target) |
Copies the values from this Attribute into the passed-in target attribute. The target implementation must support all the Attributes this implementation supports. | |
override System.Object | Clone () |
Shallow clone. Subclasses must override this if they need to clone any members deeply, | |
Public Member Functions inherited from Lucene.Net.Util.Attribute | |
override System.String | ToString () |
The default implementation of this method accesses all declared fields of this object and prints the values in the following syntax: | |
Properties | |
virtual int | Flags [get, set] |
EXPERIMENTAL: While we think this is here to stay, we may want to change it to be a long. | |
Properties inherited from Lucene.Net.Analysis.Tokenattributes.IFlagsAttribute | |
int | Flags [get, set] |
EXPERIMENTAL: While we think this is here to stay, we may want to change it to be a long. | |
This attribute can be used to pass different flags down the tokenizer chain, eg from one TokenFilter to another one.
Definition at line 28 of file FlagsAttribute.cs.
|
virtual |
Clears the values in this AttributeImpl and resets it to its default value. If this implementation implements more than one Attribute interface it clears all.
Implements Lucene.Net.Util.Attribute.
Definition at line 47 of file FlagsAttribute.cs.
|
virtual |
Shallow clone. Subclasses must override this if they need to clone any members deeply,
Reimplemented from Lucene.Net.Util.Attribute.
Definition at line 78 of file FlagsAttribute.cs.
|
virtual |
Copies the values from this Attribute into the passed-in target attribute. The target implementation must support all the Attributes this implementation supports.
Implements Lucene.Net.Util.Attribute.
Definition at line 72 of file FlagsAttribute.cs.
|
virtual |
All values used for computation of GetHashCode() should be checked here for equality.
see also Object.Equals(Object)
Implements Lucene.Net.Util.Attribute.
Definition at line 52 of file FlagsAttribute.cs.
|
virtual |
Subclasses must implement this method and should compute a hashCode similar to this:
public int hashCode() { int code = startOffset; code = code * 31 + endOffset; return code; }
see also Equals(Object)
Implements Lucene.Net.Util.Attribute.
Definition at line 67 of file FlagsAttribute.cs.
|
getset |
EXPERIMENTAL: While we think this is here to stay, we may want to change it to be a long.
Get the bitset for any bits that have been set. This is completely distinct from ITypeAttribute.Type(), although they do share similar purposes. The flags can be used to encode information about the token for use by other Lucene.Net.Analysis.TokenFilters.
The bits
Definition at line 42 of file FlagsAttribute.cs.