public class FingerprintFilter extends TokenFilter
AttributeSource.State
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_OUTPUT_TOKEN_SIZE |
static char |
DEFAULT_SEPARATOR |
input
DEFAULT_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() |
close
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
public 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 TokenStream
IOException
public final void end() throws IOException
end
in class TokenFilter
IOException
public void reset() throws IOException
reset
in class TokenFilter
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.