Package org.apache.lucene.analysis.sinks
Class TeeSinkTokenFilter.SinkFilter
- java.lang.Object
-
- org.apache.lucene.analysis.sinks.TeeSinkTokenFilter.SinkFilter
-
- Direct Known Subclasses:
DateRecognizerSinkFilter,TokenRangeSinkFilter,TokenTypeSinkFilter
- Enclosing class:
- TeeSinkTokenFilter
public abstract static class TeeSinkTokenFilter.SinkFilter extends java.lang.ObjectA filter that decides whichAttributeSourcestates to store in the sink.
-
-
Constructor Summary
Constructors Constructor Description SinkFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanaccept(AttributeSource source)Returns true, iff the current state of the passed-inAttributeSourceshall be stored in the sink.voidreset()Called byTeeSinkTokenFilter.SinkTokenStream.reset().
-
-
-
Method Detail
-
accept
public abstract boolean accept(AttributeSource source)
Returns true, iff the current state of the passed-inAttributeSourceshall be stored in the sink.
-
reset
public void reset() throws java.io.IOExceptionCalled byTeeSinkTokenFilter.SinkTokenStream.reset(). This method does nothing by default and can optionally be overridden.- Throws:
java.io.IOException
-
-