Class TokenStreamComponents
This class encapsulates the outer components of a token stream. It provides access to the source (Tokenizer) and the outer end (sink), an instance of TokenFilter which also serves as the TokenStream returned by GetTokenStream(String, TextReader).
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public class TokenStreamComponents : object
Constructors
Name | Description |
---|---|
TokenStreamComponents(Tokenizer) | Creates a new TokenStreamComponents instance. |
TokenStreamComponents(Tokenizer, TokenStream) | Creates a new TokenStreamComponents instance. |
Fields
Name | Description |
---|---|
m_sink | Sink tokenstream, such as the outer tokenfilter decorating the chain. This can be the source if there are no filters. |
m_source | Original source of the tokens. |
Properties
Name | Description |
---|---|
Tokenizer | Returns the component's Tokenizer |
TokenStream | Returns the sink TokenStream |
Methods
Name | Description |
---|---|
SetReader(TextReader) | Resets the encapsulated components with the given reader. If the components cannot be reset, an Exception should be thrown. |