Class DirectCandidateGenerator.TokenConsumer
org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.TokenConsumer
- Enclosing class:
- DirectCandidateGenerator
public abstract static class DirectCandidateGenerator.TokenConsumer
extends
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.lucene.analysis.tokenattributes.CharTermAttribute
protected org.apache.lucene.analysis.tokenattributes.OffsetAttribute
protected org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
end()
protected org.apache.lucene.util.BytesRef
fillBytesRef(org.apache.lucene.util.BytesRefBuilder spare)
abstract void
void
reset(org.apache.lucene.analysis.TokenStream stream)
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
charTermAttr
protected org.apache.lucene.analysis.tokenattributes.CharTermAttribute charTermAttr -
posIncAttr
protected org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute posIncAttr -
offsetAttr
protected org.apache.lucene.analysis.tokenattributes.OffsetAttribute offsetAttr
-
-
Constructor Details
-
TokenConsumer
public TokenConsumer()
-
-
Method Details
-
reset
public void reset(org.apache.lucene.analysis.TokenStream stream) -
fillBytesRef
protected org.apache.lucene.util.BytesRef fillBytesRef(org.apache.lucene.util.BytesRefBuilder spare) -
nextToken
public abstract void nextToken() throws- Throws:
-
end
public void end()
-