Class RangeAggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
co.elastic.clients.elasticsearch._types.aggregations.RangeAggregation
- All Implemented Interfaces:
AggregationVariant,ApiKeyAggregationVariant,JsonpSerializable
@JsonpDeserializable
public class RangeAggregation
extends BucketAggregationBase
implements AggregationVariant, ApiKeyAggregationVariant
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._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 TypeMethodDescriptionAggregation variant kind.ApiKeyAggregation variant kind.final Stringfield()The date field whose values are use to build ranges.final Stringformat()API name:formatfinal 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 voidMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
setupBucketAggregationBaseDeserializerMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
meta, name, serialize, setupAggregationBaseDeserializer, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.aggregations.AggregationVariant
_toAggregationMethods inherited from interface co.elastic.clients.elasticsearch.security.query_api_keys.ApiKeyAggregationVariant
_toApiKeyAggregation
-
Field Details
-
_DESERIALIZER
Json deserializer forRangeAggregation
-
-
Method Details
-
of
public static RangeAggregation of(Function<RangeAggregation.Builder, ObjectBuilder<RangeAggregation>> fn) -
_aggregationKind
Aggregation variant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
_apiKeyAggregationKind
ApiKeyAggregation variant kind.- Specified by:
_apiKeyAggregationKindin interfaceApiKeyAggregationVariant
-
field
The date field whose values are use to build ranges.API name:
field -
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 -
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 -
format
API name:format -
serializeInternal
- Overrides:
serializeInternalin classAggregationBase
-
setupRangeAggregationDeserializer
protected static void setupRangeAggregationDeserializer(ObjectDeserializer<RangeAggregation.Builder> op)
-