Class MovingFunctionAggregation.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.AggregationBase.AbstractBuilder<MovingFunctionAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.BucketPathAggregation.AbstractBuilder<MovingFunctionAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.PipelineAggregationBase.AbstractBuilder<MovingFunctionAggregation.Builder>
org.opensearch.client.opensearch._types.aggregations.MovingFunctionAggregation.Builder
- All Implemented Interfaces:
CopyableBuilder<MovingFunctionAggregation.Builder,,MovingFunctionAggregation> MutableBuilder<MovingFunctionAggregation.Builder,,MovingFunctionAggregation> ObjectBuilder<MovingFunctionAggregation>
- Enclosing class:
MovingFunctionAggregation
public static class MovingFunctionAggregation.Builder
extends PipelineAggregationBase.AbstractBuilder<MovingFunctionAggregation.Builder>
implements CopyableBuilder<MovingFunctionAggregation.Builder,MovingFunctionAggregation>
Builder for
MovingFunctionAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMovingFunctionAggregation.copy()Create a new builderCopyableBuilderthat is a copy of this one.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 org.opensearch.client.opensearch._types.aggregations.PipelineAggregationBase.AbstractBuilder
format, gapPolicyMethods inherited from class org.opensearch.client.opensearch._types.aggregations.BucketPathAggregation.AbstractBuilder
bucketsPath, bucketsPathMethods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregationBase.AbstractBuilder
meta, meta, nameMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<MovingFunctionAggregation.Builder,MovingFunctionAggregation> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classAggregationBase.AbstractBuilder<MovingFunctionAggregation.Builder>
-
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 -
build
Builds aMovingFunctionAggregation.- Specified by:
buildin interfaceObjectBuilder<MovingFunctionAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-