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() |
boolean |
incrementToken() |
org.apache.lucene.analysis.Token |
next()
Deprecated.
Will be removed in Lucene 3.0. This method is final, as it should
not be overridden. Delegates to the backwards compatibility layer.
|
org.apache.lucene.analysis.Token |
next(org.apache.lucene.analysis.Token reusableToken)
Deprecated.
Will be removed in Lucene 3.0. This method is final, as it should
not be overridden. Delegates to the backwards compatibility layer.
|
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) |
end, getOnlyUseNewAPI, setOnlyUseNewAPIaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, 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 final org.apache.lucene.analysis.Token next(org.apache.lucene.analysis.Token reusableToken)
throws IOException
next in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic final org.apache.lucene.analysis.Token next()
throws IOException
next 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 class org.apache.lucene.analysis.TokenStreamIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.