Class WeightedAverageAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder<WeightedAverageAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.WeightedAverageAggregation.Builder
- All Implemented Interfaces:
WithJson<WeightedAverageAggregation.Builder>,ObjectBuilder<WeightedAverageAggregation>
- Enclosing class:
- WeightedAverageAggregation
public static class WeightedAverageAggregation.Builder
extends AggregationBase.AbstractBuilder<WeightedAverageAggregation.Builder>
implements ObjectBuilder<WeightedAverageAggregation>
Builder for
WeightedAverageAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aWeightedAverageAggregation.A numeric response formatter.protected WeightedAverageAggregation.Builderself()value(WeightedAverageValue value) Configuration for the field that provides the values.Configuration for the field that provides the values.API name:value_typeweight(WeightedAverageValue value) Configuration for the field or script that provides the weights.Configuration for the field or script that provides the weights.Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder
meta, meta, nameMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
format
A numeric response formatter.API name:
format -
value
Configuration for the field that provides the values.API name:
value -
value
public final WeightedAverageAggregation.Builder value(Function<WeightedAverageValue.Builder, ObjectBuilder<WeightedAverageValue>> fn) Configuration for the field that provides the values.API name:
value -
valueType
API name:value_type -
weight
Configuration for the field or script that provides the weights.API name:
weight -
weight
public final WeightedAverageAggregation.Builder weight(Function<WeightedAverageValue.Builder, ObjectBuilder<WeightedAverageValue>> fn) Configuration for the field or script that provides the weights.API name:
weight -
self
- Specified by:
selfin classAggregationBase.AbstractBuilder<WeightedAverageAggregation.Builder>
-
build
Builds aWeightedAverageAggregation.- Specified by:
buildin interfaceObjectBuilder<WeightedAverageAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-