C# Class Lucene.Net.Analysis.Sinks.TeeSinkTokenFilter.SinkFilter

A filter that decides which AttributeSource states to store in the sink.
Show file Open project: apache/lucenenet

Public Methods

Method Description
Accept ( Lucene.Net.Util.AttributeSource source ) : bool

Returns true, iff the current state of the passed-in AttributeSource shall be stored in the sink.

Reset ( ) : void

Called by SinkTokenStream#reset(). This method does nothing by default and can optionally be overridden.

Method Details

Accept() public abstract method

Returns true, iff the current state of the passed-in AttributeSource shall be stored in the sink.
public abstract Accept ( Lucene.Net.Util.AttributeSource source ) : bool
source Lucene.Net.Util.AttributeSource
return bool

Reset() public method

Called by SinkTokenStream#reset(). This method does nothing by default and can optionally be overridden.
public Reset ( ) : void
return void