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 IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic void reset()
throws IOException
reset in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic void end()
throws IOException
end in class org.apache.lucene.analysis.TokenStreamIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.