Package org.apache.lucene.analysis.sinks
Class TokenTypeSinkFilter
- java.lang.Object
-
- org.apache.lucene.analysis.sinks.TeeSinkTokenFilter.SinkFilter
-
- org.apache.lucene.analysis.sinks.TokenTypeSinkFilter
-
public class TokenTypeSinkFilter extends TeeSinkTokenFilter.SinkFilter
Adds a token to the sink if it has a specific type.
-
-
Constructor Summary
Constructors Constructor Description TokenTypeSinkFilter(String typeToMatch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(AttributeSource source)Returns true, iff the current state of the passed-inAttributeSourceshall be stored in the sink.-
Methods inherited from class org.apache.lucene.analysis.sinks.TeeSinkTokenFilter.SinkFilter
reset
-
-
-
-
Constructor Detail
-
TokenTypeSinkFilter
public TokenTypeSinkFilter(String typeToMatch)
-
-
Method Detail
-
accept
public boolean accept(AttributeSource source)
Description copied from class:TeeSinkTokenFilter.SinkFilterReturns true, iff the current state of the passed-inAttributeSourceshall be stored in the sink.- Specified by:
acceptin classTeeSinkTokenFilter.SinkFilter
-
-