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 java.io.IOException
incrementToken
in class org.apache.lucene.analysis.TokenStream
java.io.IOException
public void reset() throws java.io.IOException
reset
in class org.apache.lucene.analysis.TokenStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class org.apache.lucene.analysis.TokenStream
java.io.IOException
public void end() throws java.io.IOException
end
in class org.apache.lucene.analysis.TokenStream
java.io.IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.