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 java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Constructor Details

  • Method Details

    • field

      @Nullable public final java.lang.String field()
      API name: field
    • missing

      @Nullable public final FieldValue missing()
      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)
    • setupMetricAggregationBaseDeserializer

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