Class MovingFunctionScript
java.lang.Object
org.elasticsearch.search.aggregations.pipeline.MovingFunctionScript
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
-
Constructor Summary
-
Method Summary
-
Field Details
-
PARAMETERS
-
CONTEXT
-
-
Constructor Details
-
MovingFunctionScript
public MovingFunctionScript()
-
-
Method Details
-
execute
- 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
-