Class DirectCandidateGenerator.TokenConsumer
- java.lang.Object
-
- org.elasticsearch.search.suggest.phrase.DirectCandidateGenerator.TokenConsumer
-
- Enclosing class:
- DirectCandidateGenerator
public abstract static class DirectCandidateGenerator.TokenConsumer extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CharTermAttributecharTermAttrprotected OffsetAttributeoffsetAttrprotected PositionIncrementAttributeposIncAttr
-
Constructor Summary
Constructors Constructor Description TokenConsumer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidend()protected BytesReffillBytesRef(BytesRefBuilder spare)abstract voidnextToken()voidreset(TokenStream stream)
-
-
-
Field Detail
-
charTermAttr
protected CharTermAttribute charTermAttr
-
posIncAttr
protected PositionIncrementAttribute posIncAttr
-
offsetAttr
protected OffsetAttribute offsetAttr
-
-
Method Detail
-
reset
public void reset(TokenStream stream)
-
fillBytesRef
protected BytesRef fillBytesRef(BytesRefBuilder spare)
-
nextToken
public abstract void nextToken() throws IOException- Throws:
IOException
-
end
public void end()
-
-