Class GeoDistanceAggregation.Builder
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase.AbstractBuilder<GeoDistanceAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.GeoDistanceAggregation.Builder
- All Implemented Interfaces:
ObjectBuilder<GeoDistanceAggregation>
- Enclosing class:
- GeoDistanceAggregation
public static class GeoDistanceAggregation.Builder extends BucketAggregationBase.AbstractBuilder<GeoDistanceAggregation.Builder> implements ObjectBuilder<GeoDistanceAggregation>
Builder for
GeoDistanceAggregation
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase.AbstractBuilder
aggregations, aggregations, putAggregations, putAggregations
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder
meta, name, putMeta
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
distanceType
API name:distance_type
-
field
API name:field
-
origin
API name:origin
-
ranges
API name:ranges
-
ranges
API name:ranges
-
addRanges
Add a value toranges(List)
, creating the list if needed. -
ranges
public GeoDistanceAggregation.Builder ranges(java.util.function.Function<AggregationRange.Builder,ObjectBuilder<AggregationRange>> fn)Setranges(List)
to a singleton list. -
addRanges
public GeoDistanceAggregation.Builder addRanges(java.util.function.Function<AggregationRange.Builder,ObjectBuilder<AggregationRange>> fn)Add a value toranges(List)
, creating the list if needed. -
unit
API name:unit
-
self
- Specified by:
self
in classAggregationBase.AbstractBuilder<GeoDistanceAggregation.Builder>
-
build
Builds aGeoDistanceAggregation
.- Specified by:
build
in interfaceObjectBuilder<GeoDistanceAggregation>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-