Class GeoCentroidAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase.AbstractBuilder<GeoCentroidAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.GeoCentroidAggregation.Builder
- All Implemented Interfaces:
WithJson<GeoCentroidAggregation.Builder>,ObjectBuilder<GeoCentroidAggregation>
- Enclosing class:
- GeoCentroidAggregation
public static class GeoCentroidAggregation.Builder
extends MetricAggregationBase.AbstractBuilder<GeoCentroidAggregation.Builder>
implements ObjectBuilder<GeoCentroidAggregation>
Builder for
GeoCentroidAggregation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGeoCentroidAggregation.API name:countlocation(GeoLocation value) API name:locationAPI name:locationprotected GeoCentroidAggregation.Builderself()Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase.AbstractBuilder
field, missing, missing, missing, missing, missing, missing, script, scriptMethods 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
-
count
API name:count -
location
API name:location -
location
public final GeoCentroidAggregation.Builder location(Function<GeoLocation.Builder, ObjectBuilder<GeoLocation>> fn) API name:location -
self
- Specified by:
selfin classMetricAggregationBase.AbstractBuilder<GeoCentroidAggregation.Builder>
-
build
Builds aGeoCentroidAggregation.- Specified by:
buildin interfaceObjectBuilder<GeoCentroidAggregation>- Throws:
NullPointerException- if some of the required fields are null.
-