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, toStringpublic 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 java.io.IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class org.apache.lucene.analysis.TokenStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class org.apache.lucene.analysis.TokenStreamjava.io.IOExceptionpublic void end()
throws java.io.IOException
end in class org.apache.lucene.analysis.TokenStreamjava.io.IOExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.