Package org.opensearch.analysis.common
Class AnalysisPredicateScript
- java.lang.Object
-
- org.opensearch.analysis.common.AnalysisPredicateScript
-
public abstract class AnalysisPredicateScript extends java.lang.ObjectA predicate based on the current token in a TokenStream
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAnalysisPredicateScript.Factorystatic classAnalysisPredicateScript.TokenEncapsulation of the state of the current token
-
Field Summary
Fields Modifier and Type Field Description static ScriptContext<AnalysisPredicateScript.Factory>CONTEXTstatic java.lang.String[]PARAMETERS
-
Constructor Summary
Constructors Constructor Description AnalysisPredicateScript()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleanexecute(AnalysisPredicateScript.Token token)Returnstrueif the current term matches the predicate
-
-
-
Field Detail
-
PARAMETERS
public static final java.lang.String[] PARAMETERS
-
CONTEXT
public static final ScriptContext<AnalysisPredicateScript.Factory> CONTEXT
-
-
Method Detail
-
execute
public abstract boolean execute(AnalysisPredicateScript.Token token)
Returnstrueif the current term matches the predicate
-
-