Class MovingFunctionScript
- java.lang.Object
-
- org.elasticsearch.search.aggregations.pipeline.MovingFunctionScript
-
public abstract class MovingFunctionScript extends Object
This class provides a custom script context for the Moving Function pipeline aggregation, so that we can expose a number of pre-baked moving functions like min, max, movavg, etc
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMovingFunctionScript.Factory
-
Field Summary
Fields Modifier and Type Field Description static ScriptContext<MovingFunctionScript.Factory>CONTEXTstatic String[]PARAMETERS
-
Constructor Summary
Constructors Constructor Description MovingFunctionScript()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract doubleexecute(Map<String,Object> params, double[] values)
-
-
-
Field Detail
-
PARAMETERS
public static final String[] PARAMETERS
-
CONTEXT
public static final ScriptContext<MovingFunctionScript.Factory> CONTEXT
-
-