Class Groupings

java.lang.Object
co.elastic.clients.elasticsearch.rollup.Groupings
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class Groupings extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • dateHistogram

      @Nullable public final DateHistogramGrouping 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 a date_histogram group.

      API name: date_histogram

    • histogram

      @Nullable public final HistogramGrouping histogram()
      The histogram group aggregates one or more numeric fields into numeric histogram intervals.

      API name: histogram

    • terms

      @Nullable public 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. 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

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupGroupingsDeserializer

      protected static void setupGroupingsDeserializer(ObjectDeserializer<Groupings.Builder> op)