Class GeoDistanceAggregation.Builder
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.Aggregation.AbstractBuilder<BuilderT>
org.opensearch.client.opensearch._types.aggregations.BucketAggregationBase.AbstractBuilder<GeoDistanceAggregation.Builder>
org.opensearch.client.opensearch._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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Methods inherited from class org.opensearch.client.opensearch._types.aggregations.BucketAggregationBase.AbstractBuilder
aggregations, aggregations, putAggregations, putAggregationsMethods inherited from class org.opensearch.client.opensearch._types.aggregations.Aggregation.AbstractBuilder
meta, name, putMeta
-
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:
selfin classAggregation.AbstractBuilder<GeoDistanceAggregation.Builder>
-
build
Builds aGeoDistanceAggregation.- Specified by:
buildin interfaceObjectBuilder<GeoDistanceAggregation>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-