Package org.opensearch.analysis.common
Class AnalysisPredicateScript.Token
java.lang.Object
org.opensearch.analysis.common.AnalysisPredicateScript.Token
- Enclosing class:
- AnalysisPredicateScript
Encapsulation of the state of the current token
-
Constructor Summary
ConstructorsConstructorDescriptionToken(AttributeSource source) Create a token exposing values from an AttributeSource -
Method Summary
-
Constructor Details
-
Token
Create a token exposing values from an AttributeSource
-
-
Method Details
-
reset
public void reset() -
updatePosition
public void updatePosition() -
getTerm
-
getPositionIncrement
public int getPositionIncrement() -
getPosition
public int getPosition() -
getPositionLength
public int getPositionLength() -
getStartOffset
public int getStartOffset() -
getEndOffset
public int getEndOffset() -
getType
-
isKeyword
public boolean isKeyword()
-