Class MovFnPipelineAggregator
- java.lang.Object
-
- org.elasticsearch.search.aggregations.pipeline.PipelineAggregator
-
- org.elasticsearch.search.aggregations.pipeline.movfn.MovFnPipelineAggregator
-
- All Implemented Interfaces:
NamedWriteable
,Writeable
public class MovFnPipelineAggregator extends PipelineAggregator
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 The user can also define any arbitrary logic via their own scripting, or combine with the above methods.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.pipeline.PipelineAggregator
PipelineAggregator.Parser
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description MovFnPipelineAggregator(StreamInput in)
-
Method Summary
Modifier and Type Method Description protected void
doWriteTo(StreamOutput out)
java.lang.String
getWriteableName()
Returns the name of the writeable objectInternalAggregation
reduce(InternalAggregation aggregation, InternalAggregation.ReduceContext reduceContext)
-
Methods inherited from class org.elasticsearch.search.aggregations.pipeline.PipelineAggregator
bucketsPaths, metaData, name, writeTo
-
-
-
-
Constructor Detail
-
MovFnPipelineAggregator
public MovFnPipelineAggregator(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
doWriteTo
protected void doWriteTo(StreamOutput out) throws java.io.IOException
- Specified by:
doWriteTo
in classPipelineAggregator
- Throws:
java.io.IOException
-
getWriteableName
public java.lang.String getWriteableName()
Description copied from interface:NamedWriteable
Returns the name of the writeable object
-
reduce
public InternalAggregation reduce(InternalAggregation aggregation, InternalAggregation.ReduceContext reduceContext)
- Specified by:
reduce
in classPipelineAggregator
-
-