Class CachingTokenFilter
This class can be used if the token attributes of a TokenStream are intended to be consumed more than once. It caches all token attribute states locally in a List.
CachingTokenFilter implements the optional method Reset(), which repositions the stream to the first Token.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class CachingTokenFilter : TokenFilter, IDisposable
Constructors
Name | Description |
---|---|
CachingTokenFilter(TokenStream) | Create a new CachingTokenFilter around |
Methods
Name | Description |
---|---|
End() | |
IncrementToken() | |
Reset() | Rewinds the iterator to the beginning of the cached list. Note that this does not call Reset() on the wrapped tokenstream ever, even the first time. You should Reset() the inner tokenstream before wrapping it with CachingTokenFilter. |