@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 ArrayDeque<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 ArrayDeque<String> getTokens()
public void reset()
throws IOException
reset in class org.apache.lucene.analysis.TokenFilterIOExceptionprotected boolean addTerm()
Copyright © 2012–2020 OWASP. All rights reserved.