Class DateHistogramGrouping

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

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

  • Method Details

    • of

    • delay

      @Nullable public final Time delay()
      How long to wait before rolling up new documents. By default, the indexer attempts to roll up all data that is available. However, it is not uncommon for data to arrive out of order. The indexer is unable to deal with data that arrives after a time-span has been rolled up. You need to specify a delay that matches the longest period of time you expect out-of-order data to arrive.

      API name: delay

    • field

      public final String field()
      Required - The date field that is to be rolled up.

      API name: field

    • format

      @Nullable public final String format()
      API name: format
    • interval

      @Nullable public final Time interval()
      API name: interval
    • calendarInterval

      @Nullable public final Time calendarInterval()
      The interval of time buckets to be generated when rolling up.

      API name: calendar_interval

    • fixedInterval

      @Nullable public final Time fixedInterval()
      The interval of time buckets to be generated when rolling up.

      API name: fixed_interval

    • timeZone

      @Nullable public final String timeZone()
      Defines what time_zone the rollup documents are stored as. Unlike raw data, which can shift timezones on the fly, rolled documents have to be stored with a specific timezone. By default, rollup documents are stored in UTC.

      API name: time_zone

    • 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
    • setupDateHistogramGroupingDeserializer

      protected static void setupDateHistogramGroupingDeserializer(ObjectDeserializer<DateHistogramGrouping.Builder> op)