Class MetricAggregationBase.AbstractBuilder<BuilderT extends MetricAggregationBase.AbstractBuilder<BuilderT>>

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase.AbstractBuilder<BuilderT>
All Implemented Interfaces:
WithJson<BuilderT>
Direct Known Subclasses:
BoxplotAggregation.Builder, CardinalityAggregation.Builder, FormatMetricAggregationBase.AbstractBuilder, FormattableMetricAggregation.AbstractBuilder, GeoBoundsAggregation.Builder, GeoCentroidAggregation.Builder, ScriptedMetricAggregation.Builder, StringStatsAggregation.Builder, TopHitsAggregation.Builder, TopMetricsAggregation.Builder
Enclosing class:
MetricAggregationBase

public abstract static class MetricAggregationBase.AbstractBuilder<BuilderT extends MetricAggregationBase.AbstractBuilder<BuilderT>> extends WithJsonObjectBuilderBase<BuilderT>
  • Constructor Details

    • AbstractBuilder

      public AbstractBuilder()
  • Method Details

    • field

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

      API name: field

    • missing

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

      API name: missing

    • missing

      The value to apply to documents that do not have a value. By default, documents without a value are ignored.

      API name: missing

    • missing

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

      API name: missing

    • missing

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

      API name: missing

    • missing

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

      API name: missing

    • missing

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

      API name: missing

    • script

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

      public final BuilderT script(Function<Script.Builder,ObjectBuilder<Script>> fn)
      API name: script
    • self

      protected abstract BuilderT self()
      Specified by:
      self in class WithJsonObjectBuilderBase<BuilderT extends MetricAggregationBase.AbstractBuilder<BuilderT>>