@NotThreadSafe
public abstract class AbstractTokenizingFilter
extends org.apache.lucene.analysis.TokenFilter
| Constructor and Description |
|---|
AbstractTokenizingFilter(org.apache.lucene.analysis.TokenStream stream)
Constructs a new AbstractTokenizingFilter.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addTerm()
Adds a term, if one exists, from the tokens collection.
|
protected org.apache.lucene.analysis.tokenattributes.CharTermAttribute |
getTermAtt()
Gets the CharTermAttribute.
|
protected java.util.ArrayDeque<java.lang.String> |
getTokens()
Gets the list of tokens.
|
void |
reset() |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic AbstractTokenizingFilter(org.apache.lucene.analysis.TokenStream stream)
stream - the TokenStream that this filter will processprotected org.apache.lucene.analysis.tokenattributes.CharTermAttribute getTermAtt()
protected java.util.ArrayDeque<java.lang.String> getTokens()
public void reset()
throws java.io.IOException
reset in class org.apache.lucene.analysis.TokenFilterjava.io.IOExceptionprotected boolean addTerm()
Copyright© 2012-21 Jeremy Long. All Rights Reserved.