Class MovFnPipelineAggregator
java.lang.Object
org.opensearch.search.aggregations.pipeline.PipelineAggregator
org.opensearch.search.aggregations.pipeline.MovFnPipelineAggregator
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.NamedWriteable
,org.opensearch.core.common.io.stream.Writeable
This pipeline aggregation gives the user the ability to script functions that "move" across a window
of data, instead of single data points. It is the scripted version of MovingAvg pipeline agg.
Through custom script contexts, we expose a number of convenience methods:
- max
- min
- sum
- unweightedAvg
- linearWeightedAvg
- ewma
- holt
- holtWintersMovAvg
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.search.aggregations.pipeline.PipelineAggregator
PipelineAggregator.Parser, PipelineAggregator.PipelineTree
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Constructor Summary
ConstructorDescriptionMovFnPipelineAggregator
(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doWriteTo
(org.opensearch.core.common.io.stream.StreamOutput out) Write the body of the aggregation to the wire.The name of the writeable object.reduce
(InternalAggregation aggregation, InternalAggregation.ReduceContext reduceContext) Methods inherited from class org.opensearch.search.aggregations.pipeline.PipelineAggregator
bucketsPaths, metadata, name, writeTo
-
Constructor Details
-
MovFnPipelineAggregator
public MovFnPipelineAggregator(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
-
Method Details
-
doWriteTo
Description copied from class:PipelineAggregator
Write the body of the aggregation to the wire.- Overrides:
doWriteTo
in classPipelineAggregator
- Throws:
IOException
-
getWriteableName
Description copied from class:PipelineAggregator
The name of the writeable object.- Specified by:
getWriteableName
in interfaceorg.opensearch.core.common.io.stream.NamedWriteable
- Overrides:
getWriteableName
in classPipelineAggregator
-
reduce
public InternalAggregation reduce(InternalAggregation aggregation, InternalAggregation.ReduceContext reduceContext) - Specified by:
reduce
in classPipelineAggregator
-