Class GeoHashGridAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder<BuilderT>
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase.AbstractBuilder<GeoHashGridAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.GeoHashGridAggregation.Builder
- All Implemented Interfaces:
WithJson<GeoHashGridAggregation.Builder>
,ObjectBuilder<GeoHashGridAggregation>
- Enclosing class:
- GeoHashGridAggregation
public static class GeoHashGridAggregation.Builder
extends BucketAggregationBase.AbstractBuilder<GeoHashGridAggregation.Builder>
implements ObjectBuilder<GeoHashGridAggregation>
Builder for
GeoHashGridAggregation
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAPI name:bounds
API name:bounds
build()
Builds aGeoHashGridAggregation
.API name:field
precision
(GeoHashPrecision value) API name:precision
API name:precision
protected GeoHashGridAggregation.Builder
self()
API name:shard_size
API name:size
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder
meta, meta, name
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bounds
API name:bounds
-
bounds
public final GeoHashGridAggregation.Builder bounds(Function<GeoBounds.Builder, ObjectBuilder<GeoBounds>> fn) API name:bounds
-
field
API name:field
-
precision
API name:precision
-
precision
public final GeoHashGridAggregation.Builder precision(Function<GeoHashPrecision.Builder, ObjectBuilder<GeoHashPrecision>> fn) API name:precision
-
shardSize
API name:shard_size
-
size
API name:size
-
self
- Specified by:
self
in classAggregationBase.AbstractBuilder<GeoHashGridAggregation.Builder>
-
build
Builds aGeoHashGridAggregation
.- Specified by:
build
in interfaceObjectBuilder<GeoHashGridAggregation>
- Throws:
NullPointerException
- if some of the required fields are null.
-