StandardTokenizer Class |
Namespace: Ingeniux.CMS.Assets.Search
The StandardTokenizer type exposes the following members.
Name | Description | |
---|---|---|
StandardTokenizer(Version, TextReader) | Creates a new instance of the
StandardTokenizer. Attaches
the input to the newly created JFlex scanner.
| |
StandardTokenizer(Version, AttributeSource, TextReader) | Creates a new StandardTokenizer with a given AttributeSource. | |
StandardTokenizer(Version, AttributeFactory, TextReader) | Creates a new StandardTokenizer with a given
AttributeFactory |
Name | Description | |
---|---|---|
Factory | Returns the used AttributeFactory. (Inherited from AttributeSource.) | |
HasAttributes | Returns true, iff this AttributeSource has any attributes (Inherited from AttributeSource.) | |
MaxTokenLength | Set the max allowed token length. Any token longer
than this is skipped.
|
Name | Description | |
---|---|---|
AddAttribute``1 | The caller must pass in a Class<? extends Attribute> value.
This method first checks if an instance of that class is
already in this AttributeSource and returns it. Otherwise a
new instance is created, added to this AttributeSource and returned.
(Inherited from AttributeSource.) | |
AddAttributeImpl | Expert: Adds a custom AttributeImpl instance with one or more Attribute interfaces.
(Inherited from AttributeSource.)Please note: It is not guaranteed, that att is added to the AttributeSource, because the provided attributes may already exist. You should always retrieve the wanted attributes using GetAttribute``1 after adding with this method and cast to your class. The recommended way to use custom implementations is using an AttributeFactory | |
CaptureState | Captures the state of all Attributes. The return value can be passed to
RestoreState(State) to restore the state of this or another AttributeSource.
(Inherited from AttributeSource.) | |
ClearAttributes | Resets all Attributes in this AttributeSource by calling
Clear on each Attribute implementation.
(Inherited from AttributeSource.) | |
CloneAttributes | Performs a clone of all Attribute instances returned in a new
AttributeSource instance. This method can be used to e.g. create another TokenStream
with exactly the same attributes (using #ctor(AttributeSource))
(Inherited from AttributeSource.) | |
Close | Obsolete. Releases resources associated with this stream. (Inherited from TokenStream.) | |
Dispose | (Inherited from TokenStream.) | |
End | (Overrides TokenStream.End.) | |
Equals | (Inherited from AttributeSource.) | |
GetAttribute``1 |
The caller must pass in a Class<? extends Attribute> value.
Returns the instance of the passed in Attribute contained in this AttributeSource
(Inherited from AttributeSource.) | |
GetAttributeImplsIterator | Returns a new iterator that iterates all unique Attribute implementations.
This iterator may contain less entries that GetAttributeTypesIterator,
if one instance implements more than one Attribute interface.
Signature for Java 1.5: public Iterator<AttributeImpl> getAttributeImplsIterator() (Inherited from AttributeSource.) | |
GetAttributeTypesIterator | Returns a new iterator that iterates the attribute classes
in the same order they were added in.
Signature for Java 1.5: public Iterator<Class<? extends Attribute>> getAttributeClassesIterator()
Note that this return value is different from Java in that it enumerates over the values
and not the keys
(Inherited from AttributeSource.) | |
GetHashCode | (Inherited from AttributeSource.) | |
HasAttribute``1 | The caller must pass in a Class<? extends Attribute> value.
Returns true, iff this AttributeSource contains the passed-in Attribute.
(Inherited from AttributeSource.) | |
IncrementToken |
(non-Javadoc)
IncrementToken (Overrides TokenStream.IncrementToken.) | |
Reset | Resets this stream to the beginning. This is an optional operation, so
subclasses may or may not implement this method. Reset is not needed for
the standard indexing process. However, if the tokens of a
TokenStream are intended to be consumed more than once, it is
necessary to implement Reset. Note that if your TokenStream
caches tokens and feeds them back again after a reset, it is imperative
that you clone the tokens when you store them away (on the first pass) as
well as when you return them (on future passes after Reset).
(Inherited from TokenStream.) | |
Reset(TextReader) | (Overrides Tokenizer.Reset(TextReader).) | |
RestoreState | Restores this state by copying the values of all attribute implementations
that this state contains into the attributes implementations of the targetStream.
The targetStream must contain a corresponding instance for each argument
contained in this state (e.g. it is not possible to restore the state of
an AttributeSource containing a TermAttribute into a AttributeSource using
a Token instance as implementation).
Note that this method does not affect attributes of the targetStream
that are not contained in this state. In other words, if for example
the targetStream contains an OffsetAttribute, but this state doesn't, then
the value of the OffsetAttribute remains unchanged. It might be desirable to
reset its value to the default, in which case the caller should first
call ClearAttributes on the targetStream.
(Inherited from AttributeSource.) | |
SetReplaceInvalidAcronym | Obsolete.
Remove in 3.X and make true the only valid value
See https://issues.apache.org/jira/browse/LUCENE-1068
| |
ToString | (Inherited from AttributeSource.) |
Name | Description | |
---|---|---|
ACRONYM | ||
ACRONYM_DEP | Obsolete. | |
ALPHANUM | ||
APOSTROPHE | ||
CJ | ||
COMPANY | ||
HOST | ||
NUM | ||
TOKEN_TYPES | String token types that correspond to token type int constants |