Class MetricAggregationBase

java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase
All Implemented Interfaces:
JsonpSerializable
Direct Known Subclasses:
BoxplotAggregation, CardinalityAggregation, FormatMetricAggregationBase, FormattableMetricAggregation, GeoBoundsAggregation, GeoCentroidAggregation, ScriptedMetricAggregation, StringStatsAggregation, TopHitsAggregation, TopMetricsAggregation

public abstract class MetricAggregationBase extends Object implements JsonpSerializable
See Also:
  • Constructor Details

  • Method Details

    • field

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

      API name: field

    • missing

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

      API name: missing

    • script

      @Nullable public final Script script()
      API name: script
    • 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
    • setupMetricAggregationBaseDeserializer

      protected static <BuilderT extends MetricAggregationBase.AbstractBuilder<BuilderT>> void setupMetricAggregationBaseDeserializer(ObjectDeserializer<BuilderT> op)