Class CjkUnigramFilter
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
com.apple.foundationdb.record.lucene.filter.CjkUnigramFilter
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class CjkUnigramFilter
extends org.apache.lucene.analysis.TokenFilter
An analyzer that forms unigrams of CJK terms.
NOTICE:
This analyzer contains code that was
taken from
CJKBigramFilter and modified-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
org.apache.lucene.util.AttributeSource.State -
Field Summary
FieldsFields inherited from class org.apache.lucene.analysis.TokenFilter
inputFields inherited from class org.apache.lucene.analysis.TokenStream
DEFAULT_TOKEN_ATTRIBUTE_FACTORY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.analysis.TokenFilter
close, endMethods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
-
Field Details
-
SINGLE_TYPE
- See Also:
-
-
Constructor Details
-
CjkUnigramFilter
public CjkUnigramFilter(org.apache.lucene.analysis.TokenStream in)
-
-
Method Details
-
incrementToken
- Specified by:
incrementTokenin classorg.apache.lucene.analysis.TokenStream- Throws:
IOException
-
reset
- Overrides:
resetin classorg.apache.lucene.analysis.TokenFilter- Throws:
IOException
-
equals
- Overrides:
equalsin classorg.apache.lucene.util.AttributeSource
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.lucene.util.AttributeSource
-