Class SingleTokenTokenStream
- java.lang.Object
-
- org.apache.lucene.util.AttributeSource
-
- org.apache.lucene.analysis.TokenStream
-
- org.apache.lucene.analysis.miscellaneous.SingleTokenTokenStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public final class SingleTokenTokenStream extends org.apache.lucene.analysis.TokenStream
ATokenStream
containing a single token.
-
-
Constructor Summary
Constructors Constructor Description SingleTokenTokenStream(org.apache.lucene.analysis.Token token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.analysis.Token
getToken()
boolean
incrementToken()
void
reset()
void
setToken(org.apache.lucene.analysis.Token token)
-
Methods inherited from class org.apache.lucene.util.AttributeSource
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
-
-
-
-
Method Detail
-
incrementToken
public final boolean incrementToken() throws IOException
- Specified by:
incrementToken
in classorg.apache.lucene.analysis.TokenStream
- Throws:
IOException
-
reset
public void reset() throws IOException
- Overrides:
reset
in classorg.apache.lucene.analysis.TokenStream
- Throws:
IOException
-
getToken
public org.apache.lucene.analysis.Token getToken()
-
setToken
public void setToken(org.apache.lucene.analysis.Token token)
-
-