Class MovingFunctionAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.BucketPathAggregation.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.PipelineAggregationBase.AbstractBuilder<MovingFunctionAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.MovingFunctionAggregation.Builder
- All Implemented Interfaces:
WithJson<MovingFunctionAggregation.Builder>,ObjectBuilder<MovingFunctionAggregation>
- Enclosing class:
- MovingFunctionAggregation
public static class MovingFunctionAggregation.Builder
extends PipelineAggregationBase.AbstractBuilder<MovingFunctionAggregation.Builder>
implements ObjectBuilder<MovingFunctionAggregation>
Builder for
MovingFunctionAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMovingFunctionAggregation.The script that should be executed on each window of data.protected MovingFunctionAggregation.Builderself()By default, the window consists of the last n values excluding the current bucket.The size of window to "slide" across the histogram.Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.PipelineAggregationBase.AbstractBuilder
format, gapPolicyMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketPathAggregation.AbstractBuilder
bucketsPath, bucketsPathMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
script
The script that should be executed on each window of data.API name:
script -
shift
By default, the window consists of the last n values excluding the current bucket. Increasingshiftby 1, moves the starting window position by 1 to the right.API name:
shift -
window
The size of window to "slide" across the histogram.API name:
window -
self
- Specified by:
selfin classBucketPathAggregation.AbstractBuilder<MovingFunctionAggregation.Builder>
-
build
Builds aMovingFunctionAggregation.- Specified by:
buildin interfaceObjectBuilder<MovingFunctionAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-