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
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GeoHashGridAggregation.Builder
bounds(GeoBounds value)
API name:bounds
GeoHashGridAggregation.Builder
bounds(java.util.function.Function<GeoBounds.Builder,ObjectBuilder<GeoBounds>> fn)
API name:bounds
GeoHashGridAggregation
build()
Builds aGeoHashGridAggregation
.GeoHashGridAggregation.Builder
field(java.lang.String value)
API name:field
GeoHashGridAggregation.Builder
precision(GeoHashPrecision value)
API name:precision
GeoHashGridAggregation.Builder
precision(java.util.function.Function<GeoHashPrecision.Builder,ObjectBuilder<GeoHashPrecision>> fn)
API name:precision
protected GeoHashGridAggregation.Builder
self()
GeoHashGridAggregation.Builder
shardSize(java.lang.Integer value)
API name:shard_size
GeoHashGridAggregation.Builder
size(java.lang.Integer value)
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
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
-
bounds
API name:bounds
-
bounds
public final GeoHashGridAggregation.Builder bounds(java.util.function.Function<GeoBounds.Builder,ObjectBuilder<GeoBounds>> fn)API name:bounds
-
field
API name:field
-
precision
API name:precision
-
precision
public final GeoHashGridAggregation.Builder precision(java.util.function.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:
java.lang.NullPointerException
- if some of the required fields are null.
-