Class CachingTokenFilter
This class can be used if the token attributes of a Token
Caching
Implements
IDisposable
Inherited Members
Namespace: Lucene.Net.Analysis
Assembly: Lucene.Net.dll
Syntax
public sealed class CachingTokenFilter : TokenFilter, IDisposable
Constructors
| Improve this Doc View SourceCachingTokenFilter(TokenStream)
Create a new Cachinginput
,
caching its token attributes, which can be replayed again
after a call to Reset().
Declaration
public CachingTokenFilter(TokenStream input)
Parameters
Type | Name | Description |
---|---|---|
Token |
input |
Methods
| Improve this Doc View SourceEnd()
Declaration
public override void End()
Overrides
| Improve this Doc View SourceIncrementToken()
Declaration
public override bool IncrementToken()
Returns
Type | Description |
---|---|
System. |
Overrides
| Improve this Doc View SourceReset()
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 Caching
Declaration
public override void Reset()
Overrides
Implements
IDisposable