Class SingleMetricAggregateBase.AbstractBuilder<BuilderT extends SingleMetricAggregateBase.AbstractBuilder<BuilderT>>
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.SingleMetricAggregateBase.AbstractBuilder<BuilderT>
- All Implemented Interfaces:
WithJson<BuilderT>
- Direct Known Subclasses:
AvgAggregate.Builder
,BucketMetricValueAggregate.Builder
,DerivativeAggregate.Builder
,MaxAggregate.Builder
,MedianAbsoluteDeviationAggregate.Builder
,MinAggregate.Builder
,SimpleValueAggregate.Builder
,SumAggregate.Builder
,ValueCountAggregate.Builder
,WeightedAvgAggregate.Builder
- Enclosing class:
- SingleMetricAggregateBase
protected abstract static class SingleMetricAggregateBase.AbstractBuilder<BuilderT extends SingleMetricAggregateBase.AbstractBuilder<BuilderT>> extends AggregateBase.AbstractBuilder<BuilderT>
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBuilder()
-
Method Summary
Modifier and Type Method Description BuilderT
value(double value)
Required - The metric value.BuilderT
valueAsString(java.lang.String value)
API name:value_as_string
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregateBase.AbstractBuilder
meta, meta, self
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder()
-
-
Method Details
-
value
Required - The metric value. A missing value generally means that there was no data to aggregate, unless specified otherwise.API name:
value
Defaults to
0
if parsed from a JSONnull
value. -
valueAsString
API name:value_as_string
-