Closeable
, AutoCloseable
public final class SingleTokenTokenStream
extends org.apache.lucene.analysis.TokenStream
TokenStream
containing a single token.Constructor | Description |
---|---|
SingleTokenTokenStream(org.apache.lucene.analysis.Token token) |
Modifier and Type | Method | 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-2018 Apache Software Foundation. All Rights Reserved.