Class MovingFunctionAggregation
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.AggregationBase
org.opensearch.client.opensearch._types.aggregations.BucketPathAggregation
org.opensearch.client.opensearch._types.aggregations.PipelineAggregationBase
org.opensearch.client.opensearch._types.aggregations.MovingFunctionAggregation
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,AggregationVariant,ToCopyableBuilder<MovingFunctionAggregation.Builder,MovingFunctionAggregation>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class MovingFunctionAggregation
extends PipelineAggregationBase
implements AggregationVariant, ToCopyableBuilder<MovingFunctionAggregation.Builder,MovingFunctionAggregation>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.aggregations.PipelineAggregationBase
PipelineAggregationBase.AbstractBuilder<BuilderT extends PipelineAggregationBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<MovingFunctionAggregation> Json deserializer forMovingFunctionAggregation -
Method Summary
Modifier and TypeMethodDescriptionAggregationvariant kind.builder()booleaninthashCode()static MovingFunctionAggregationfinal Stringscript()The script that should be executed on each window of data.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupMovingFunctionAggregationDeserializer(ObjectDeserializer<MovingFunctionAggregation.Builder> op) final Integershift()By default, the window consists of the last n values excluding the current bucket.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final Integerwindow()The size of window to "slide" across the histogram.Methods inherited from class org.opensearch.client.opensearch._types.aggregations.PipelineAggregationBase
format, gapPolicy, setupPipelineAggregationBaseDeserializerMethods inherited from class org.opensearch.client.opensearch._types.aggregations.BucketPathAggregation
bucketsPath, setupBucketPathAggregationDeserializerMethods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregationBase
meta, name, serialize, setupAggregationBaseDeserializerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.opensearch._types.aggregations.AggregationVariant
toAggregationMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forMovingFunctionAggregation
-
-
Method Details
-
of
public static MovingFunctionAggregation of(Function<MovingFunctionAggregation.Builder, ObjectBuilder<MovingFunctionAggregation>> fn) -
_aggregationKind
Aggregationvariant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
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 -
serializeInternal
- Overrides:
serializeInternalin classPipelineAggregationBase
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<MovingFunctionAggregation.Builder,MovingFunctionAggregation> - Returns:
- a new builder instance.
-
builder
-
setupMovingFunctionAggregationDeserializer
protected static void setupMovingFunctionAggregationDeserializer(ObjectDeserializer<MovingFunctionAggregation.Builder> op) -
hashCode
public int hashCode()- Overrides:
hashCodein classPipelineAggregationBase
-
equals
- Overrides:
equalsin classPipelineAggregationBase
-