protected static final class AnalysisRequestHandlerBase.ListBasedTokenStream
extends org.apache.lucene.analysis.TokenStream
| Modifier and Type | Field and Description |
|---|---|
private java.util.Iterator<org.apache.lucene.util.AttributeSource> |
tokenIterator |
private java.util.List<org.apache.lucene.util.AttributeSource> |
tokens |
| Constructor and Description |
|---|
ListBasedTokenStream(java.util.List<org.apache.lucene.util.AttributeSource> tokens)
Creates a new ListBasedTokenStream which uses the given tokens as its token source.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
incrementToken() |
void |
reset() |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringprivate final java.util.List<org.apache.lucene.util.AttributeSource> tokens
private java.util.Iterator<org.apache.lucene.util.AttributeSource> tokenIterator
ListBasedTokenStream(java.util.List<org.apache.lucene.util.AttributeSource> tokens)
tokens - Source of tokens to be usedpublic boolean incrementToken()
throws java.io.IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class org.apache.lucene.analysis.TokenStreamjava.io.IOException