public final class DoubleMetaphoneFilter extends TokenFilter
AttributeSource.State
input
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Constructor and Description |
---|
DoubleMetaphoneFilter(TokenStream input,
int maxCodeLength,
boolean inject)
Creates a DoubleMetaphoneFilter with the specified maximum code length,
and either adding encoded forms as synonyms (
inject=true ) or
replacing them. |
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken() |
void |
reset() |
close, end
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
public DoubleMetaphoneFilter(TokenStream input, int maxCodeLength, boolean inject)
inject=true
) or
replacing them.public boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
public void reset() throws IOException
reset
in class TokenFilter
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.