public class PrefixAndSuffixAwareTokenFilter
extends org.apache.lucene.analysis.TokenStream
PrefixAwareTokenFilter
.
NOTE: This filter might not behave correctly if used with custom Attributes, i.e. Attributes other than
the ones located in org.apache.lucene.analysis.tokenattributes.Constructor and Description |
---|
PrefixAndSuffixAwareTokenFilter(org.apache.lucene.analysis.TokenStream prefix,
org.apache.lucene.analysis.TokenStream input,
org.apache.lucene.analysis.TokenStream suffix) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
end() |
boolean |
incrementToken() |
void |
reset() |
org.apache.lucene.analysis.Token |
updateInputToken(org.apache.lucene.analysis.Token inputToken,
org.apache.lucene.analysis.Token lastPrefixToken) |
org.apache.lucene.analysis.Token |
updateSuffixToken(org.apache.lucene.analysis.Token suffixToken,
org.apache.lucene.analysis.Token lastInputToken) |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
public PrefixAndSuffixAwareTokenFilter(org.apache.lucene.analysis.TokenStream prefix, org.apache.lucene.analysis.TokenStream input, org.apache.lucene.analysis.TokenStream suffix)
public org.apache.lucene.analysis.Token updateInputToken(org.apache.lucene.analysis.Token inputToken, org.apache.lucene.analysis.Token lastPrefixToken)
public org.apache.lucene.analysis.Token updateSuffixToken(org.apache.lucene.analysis.Token suffixToken, org.apache.lucene.analysis.Token lastInputToken)
public final boolean incrementToken() throws IOException
incrementToken
in class org.apache.lucene.analysis.TokenStream
IOException
public void reset() throws IOException
reset
in class org.apache.lucene.analysis.TokenStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class org.apache.lucene.analysis.TokenStream
IOException
public void end() throws IOException
end
in class org.apache.lucene.analysis.TokenStream
IOException