Class AutoDateHistogramAggregation

All Implemented Interfaces:
AggregationVariant, JsonpSerializable

@JsonpDeserializable public class AutoDateHistogramAggregation extends BucketAggregationBase implements AggregationVariant, JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • _aggregationKind

      public Aggregation.Kind _aggregationKind()
      Aggregation variant kind.
      Specified by:
      _aggregationKind in interface AggregationVariant
    • buckets

      @Nullable public final Integer buckets()
      The target number of buckets.

      API name: buckets

    • field

      @Nullable public final String field()
      The field on which to run the aggregation.

      API name: field

    • format

      @Nullable public final String format()
      The date format used to format key_as_string in the response. If no format is specified, the first date format specified in the field mapping is used.

      API name: format

    • minimumInterval

      @Nullable public final MinimumInterval minimumInterval()
      The minimum rounding interval. This can make the collection process more efficient, as the aggregation will not attempt to round at any interval lower than minimum_interval.

      API name: minimum_interval

    • missing

      @Nullable public final DateTime missing()
      The value to apply to documents that do not have a value. By default, documents without a value are ignored.

      API name: missing

    • offset

      @Nullable public final String offset()
      Time zone specified as a ISO 8601 UTC offset.

      API name: offset

    • params

      public final Map<String,JsonData> params()
      API name: params
    • script

      @Nullable public final Script script()
      API name: script
    • timeZone

      @Nullable public final String timeZone()
      Time zone ID.

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

      protected static void setupAutoDateHistogramAggregationDeserializer(ObjectDeserializer<AutoDateHistogramAggregation.Builder> op)