public class FingerprintFilter extends TokenFilter
AttributeSource.State| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_OUTPUT_TOKEN_SIZE |
static char |
DEFAULT_SEPARATOR |
inputDEFAULT_TOKEN_ATTRIBUTE_FACTORY| Constructor and Description |
|---|
FingerprintFilter(TokenStream input)
Create a new FingerprintFilter with default settings
|
FingerprintFilter(TokenStream input,
int maxOutputTokenSize,
char separator)
Create a new FingerprintFilter with control over all settings
|
| Modifier and Type | Method and Description |
|---|---|
void |
end() |
boolean |
incrementToken() |
void |
reset() |
closeaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic static final int DEFAULT_MAX_OUTPUT_TOKEN_SIZE
public static final char DEFAULT_SEPARATOR
public FingerprintFilter(TokenStream input)
public FingerprintFilter(TokenStream input, int maxOutputTokenSize, char separator)
input - the source of tokens to be summarized into a single tokenmaxOutputTokenSize - the maximum length of the summarized output token. If exceeded, no
output token is emittedseparator - the character used to separate tokens combined into the single
output tokenpublic final boolean incrementToken()
throws IOException
incrementToken in class TokenStreamIOExceptionpublic final void end()
throws IOException
end in class TokenFilterIOExceptionpublic void reset()
throws IOException
reset in class TokenFilterIOExceptionCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.