Class AlphanumericLengthFilter
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
org.apache.lucene.analysis.FilteringTokenFilter
com.apple.foundationdb.record.lucene.filter.AlphanumericLengthFilter
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class AlphanumericLengthFilter
extends org.apache.lucene.analysis.FilteringTokenFilter
A Length Filter which ignores non-alphanumeric types.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource
org.apache.lucene.util.AttributeSource.State -
Field Summary
Fields inherited from class org.apache.lucene.analysis.TokenFilter
inputFields inherited from class org.apache.lucene.analysis.TokenStream
DEFAULT_TOKEN_ATTRIBUTE_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionAlphanumericLengthFilter(org.apache.lucene.analysis.TokenStream in, int minAlphanumLength, int maxAlphanumLength) -
Method Summary
Methods inherited from class org.apache.lucene.analysis.FilteringTokenFilter
end, incrementToken, resetMethods inherited from class org.apache.lucene.analysis.TokenFilter
closeMethods 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
-
Constructor Details
-
AlphanumericLengthFilter
public AlphanumericLengthFilter(org.apache.lucene.analysis.TokenStream in, int minAlphanumLength, int maxAlphanumLength)
-
-
Method Details
-
accept
protected boolean accept()- Specified by:
acceptin classorg.apache.lucene.analysis.FilteringTokenFilter
-
equals
- Overrides:
equalsin classorg.apache.lucene.util.AttributeSource
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.lucene.util.AttributeSource
-