Package org.apache.lucene.analysis.sinks
Class TokenTypeSinkFilter
java.lang.Object
org.apache.lucene.analysis.sinks.TeeSinkTokenFilter.SinkFilter
org.apache.lucene.analysis.sinks.TokenTypeSinkFilter
Adds a token to the sink if it has a specific type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(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 Details
-
TokenTypeSinkFilter
-
-
Method Details
-
accept
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
-