org.apache.lucene.analysis.miscellaneous
public final class SingleTokenTokenStream extends org.apache.lucene.analysis.TokenStream
TokenStream
containing a single token.Constructor and Description |
---|
SingleTokenTokenStream(org.apache.lucene.analysis.Token token) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.Token |
getToken() |
boolean |
incrementToken() |
void |
reset() |
void |
setToken(org.apache.lucene.analysis.Token token) |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
public SingleTokenTokenStream(org.apache.lucene.analysis.Token token)
public final boolean incrementToken() throws IOException
incrementToken
in class org.apache.lucene.analysis.TokenStream
IOException
public void reset() throws IOException
reset
in class org.apache.lucene.analysis.TokenStream
IOException
public org.apache.lucene.analysis.Token getToken()
public void setToken(org.apache.lucene.analysis.Token token)
Copyright © 2000-2015 JBoss by Red Hat. All Rights Reserved.