Class GeohexGridAggregation.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<GeohexGridAggregation.Builder>
co.elastic.clients.elasticsearch._types.aggregations.GeohexGridAggregation.Builder
- All Implemented Interfaces:
WithJson<GeohexGridAggregation.Builder>,ObjectBuilder<GeohexGridAggregation>
- Enclosing class:
- GeohexGridAggregation
public static class GeohexGridAggregation.Builder extends BucketAggregationBase.AbstractBuilder<GeohexGridAggregation.Builder> implements ObjectBuilder<GeohexGridAggregation>
Builder for
GeohexGridAggregation.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GeohexGridAggregation.Builderbounds(GeoBounds value)Bounding box used to filter the geo-points in each bucket.GeohexGridAggregation.Builderbounds(java.util.function.Function<GeoBounds.Builder,ObjectBuilder<GeoBounds>> fn)Bounding box used to filter the geo-points in each bucket.GeohexGridAggregationbuild()Builds aGeohexGridAggregation.GeohexGridAggregation.Builderfield(java.lang.String value)Required - Field containing indexed geo-point values.GeohexGridAggregation.Builderprecision(java.lang.Integer value)Integer zoom of the key used to defined cells or buckets in the results.protected GeohexGridAggregation.Builderself()GeohexGridAggregation.BuildershardSize(java.lang.Integer value)Number of buckets returned from each shard.GeohexGridAggregation.Buildersize(java.lang.Integer value)Maximum number of buckets to return.Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase.AbstractBuilder
meta, meta, nameMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
Required - Field containing indexed geo-point values. Must be explicitly mapped as ageo_pointfield. If the field contains an arraygeohex_gridaggregates all array values.API name:
field -
precision
Integer zoom of the key used to defined cells or buckets in the results. Value should be between 0-15.API name:
precision -
bounds
Bounding box used to filter the geo-points in each bucket.API name:
bounds -
bounds
public final GeohexGridAggregation.Builder bounds(java.util.function.Function<GeoBounds.Builder,ObjectBuilder<GeoBounds>> fn)Bounding box used to filter the geo-points in each bucket.API name:
bounds -
size
Maximum number of buckets to return.API name:
size -
shardSize
Number of buckets returned from each shard.API name:
shard_size -
self
- Specified by:
selfin classAggregationBase.AbstractBuilder<GeohexGridAggregation.Builder>
-
build
Builds aGeohexGridAggregation.- Specified by:
buildin interfaceObjectBuilder<GeohexGridAggregation>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-