Class DirectCandidateGenerator.TokenConsumer
- java.lang.Object
-
- org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.TokenConsumer
-
- Enclosing class:
- DirectCandidateGenerator
public abstract static class DirectCandidateGenerator.TokenConsumer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.lucene.analysis.tokenattributes.CharTermAttribute
charTermAttr
protected org.apache.lucene.analysis.tokenattributes.OffsetAttribute
offsetAttr
protected org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute
posIncAttr
-
Constructor Summary
Constructors Constructor Description TokenConsumer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
end()
protected org.apache.lucene.util.BytesRef
fillBytesRef(org.apache.lucene.util.BytesRefBuilder spare)
abstract void
nextToken()
void
reset(org.apache.lucene.analysis.TokenStream stream)
-
-
-
Field Detail
-
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
-
-
Method Detail
-
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 java.io.IOException
- Throws:
java.io.IOException
-
end
public void end()
-
-