Class MovingFunctionScript
org.elasticsearch.search.aggregations.pipeline.MovingFunctionScript
public abstract class MovingFunctionScript
extends
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
-
Field Summary
Modifier and TypeFieldDescriptionstatic []
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract double
<,> params, double[] values)
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
PARAMETERS
public static final [] PARAMETERS -
CONTEXT
-
-
Constructor Details
-
MovingFunctionScript
public MovingFunctionScript()
-
-
Method Details
-
execute
public abstract double execute(<,> params, double[] values)- Parameters:
params
- The user-provided parametersvalues
- The values in the window that we are moving a function across- Returns:
- A double representing the value from this particular window
-