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.TokenStreamATokenStreamcontaining 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.TokengetToken()booleanincrementToken()voidreset()voidsetToken(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:
incrementTokenin classorg.apache.lucene.analysis.TokenStream- Throws:
IOException
-
reset
public void reset() throws IOException- Overrides:
resetin 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)
-
-