Class TokenRangeSinkFilter
Counts the tokens as they go by and saves to the internal list those between the range of lower and upper, exclusive of upper
Inherited Members
Namespace: Lucene.Net.Analysis.Sinks
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class TokenRangeSinkFilter : TeeSinkTokenFilter.SinkFilter
Constructors
TokenRangeSinkFilter(int, int)
Counts the tokens as they go by and saves to the internal list those between the range of lower and upper, exclusive of upper
Declaration
public TokenRangeSinkFilter(int lower, int upper)
Parameters
Type | Name | Description |
---|---|---|
int | lower | |
int | upper |
Methods
Accept(AttributeSource)
Returns true, iff the current state of the passed-in Lucene.Net.Util.AttributeSource shall be stored in the sink.
Declaration
public override bool Accept(AttributeSource source)
Parameters
Type | Name | Description |
---|---|---|
AttributeSource | source |
Returns
Type | Description |
---|---|
bool |
Overrides
Reset()
Called by Reset(). This method does nothing by default and can optionally be overridden.
Declaration
public override void Reset()