Class RangeAggregation
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.AggregationBase
org.opensearch.client.opensearch._types.aggregations.BucketAggregationBase
org.opensearch.client.opensearch._types.aggregations.RangeAggregation
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,AggregationVariant,ToCopyableBuilder<RangeAggregation.Builder,RangeAggregation>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class RangeAggregation
extends BucketAggregationBase
implements AggregationVariant, ToCopyableBuilder<RangeAggregation.Builder,RangeAggregation>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.aggregations.BucketAggregationBase
BucketAggregationBase.AbstractBuilder<BuilderT extends BucketAggregationBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RangeAggregation> Json deserializer forRangeAggregation -
Method Summary
Modifier and TypeMethodDescriptionAggregationvariant kind.static RangeAggregation.Builderbuilder()booleanfinal Stringfield()API name:fieldfinal Stringformat()API name:formatinthashCode()final Booleankeyed()Set totrueto associate a unique string key with each bucket and return the ranges as a hash rather than an array.final Integermissing()The value to apply to documents that do not have a value.static RangeAggregationfinal List<AggregationRange> ranges()An array of ranges used to bucket documents.final Scriptscript()API name:scriptprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.aggregations.BucketAggregationBase
setupBucketAggregationBaseDeserializerMethods 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 forRangeAggregation
-
-
Method Details
-
of
public static RangeAggregation of(Function<RangeAggregation.Builder, ObjectBuilder<RangeAggregation>> fn) -
_aggregationKind
Aggregationvariant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
field
API name:field -
format
API name:format -
keyed
Set totrueto associate a unique string key with each bucket and return the ranges as a hash rather than an array.API name:
keyed -
missing
The value to apply to documents that do not have a value. By default, documents without a value are ignored.API name:
missing -
ranges
An array of ranges used to bucket documents.API name:
ranges -
script
API name:script -
serializeInternal
- Overrides:
serializeInternalin classAggregationBase
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RangeAggregation.Builder,RangeAggregation> - Returns:
- a new builder instance.
-
builder
-
setupRangeAggregationDeserializer
protected static void setupRangeAggregationDeserializer(ObjectDeserializer<RangeAggregation.Builder> op) -
hashCode
public int hashCode()- Overrides:
hashCodein classBucketAggregationBase
-
equals
- Overrides:
equalsin classBucketAggregationBase
-