Class Groupings
java.lang.Object
co.elastic.clients.elasticsearch.rollup.Groupings
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<Groupings>Json deserializer forGroupings -
Method Summary
Modifier and TypeMethodDescriptionfinal DateHistogramGroupingA date histogram group aggregates a date field into time-based buckets.final HistogramGroupingThe histogram group aggregates one or more numeric fields into numeric histogram intervals.static Groupingsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal TermsGroupingterms()The terms group can be used on keyword or numeric fields to allow bucketing via the terms aggregation at a later point.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forGroupings
-
-
Method Details
-
of
-
dateHistogram
A date histogram group aggregates a date field into time-based buckets. This group is mandatory; you currently cannot roll up documents without a timestamp and adate_histogramgroup.API name:
date_histogram -
histogram
The histogram group aggregates one or more numeric fields into numeric histogram intervals.API name:
histogram -
terms
The terms group can be used on keyword or numeric fields to allow bucketing via the terms aggregation at a later point. The indexer enumerates and stores all values of a field for each time-period. This can be potentially costly for high-cardinality groups such as IP addresses, especially if the time-bucket is particularly sparse.API name:
terms -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupGroupingsDeserializer
-