Class Groupings
java.lang.Object
co.elastic.clients.elasticsearch.rollup.Groupings
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<Groupings>
Json deserializer forGroupings
-
Method Summary
Modifier and TypeMethodDescriptionfinal DateHistogramGrouping
A date histogram group aggregates a date field into time-based buckets.final HistogramGrouping
The histogram group aggregates one or more numeric fields into numeric histogram intervals.static Groupings
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final TermsGrouping
terms()
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_histogram
group.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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupGroupingsDeserializer
-