Class GeohexGridAggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
co.elastic.clients.elasticsearch._types.aggregations.GeohexGridAggregation
- All Implemented Interfaces:
AggregationVariant,JsonpSerializable
@JsonpDeserializable public class GeohexGridAggregation extends BucketAggregationBase implements AggregationVariant
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeohexGridAggregation.BuilderBuilder forGeohexGridAggregation.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
BucketAggregationBase.AbstractBuilder<BuilderT extends BucketAggregationBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GeohexGridAggregation>_DESERIALIZERJson deserializer forGeohexGridAggregation -
Method Summary
Modifier and Type Method Description Aggregation.Kind_aggregationKind()Aggregation variant kind.GeoBoundsbounds()Bounding box used to filter the geo-points in each bucket.java.lang.Stringfield()Required - Field containing indexed geo-point values.static GeohexGridAggregationof(java.util.function.Function<GeohexGridAggregation.Builder,ObjectBuilder<GeohexGridAggregation>> fn)java.lang.Integerprecision()Integer zoom of the key used to defined cells or buckets in the results.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupGeohexGridAggregationDeserializer(ObjectDeserializer<GeohexGridAggregation.Builder> op)java.lang.IntegershardSize()Number of buckets returned from each shard.java.lang.Integersize()Maximum number of buckets to return.Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
setupBucketAggregationBaseDeserializerMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
meta, name, serialize, setupAggregationBaseDeserializer, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.aggregations.AggregationVariant
_toAggregation
-
Field Details
-
_DESERIALIZER
Json deserializer forGeohexGridAggregation
-
-
Method Details
-
of
public static GeohexGridAggregation of(java.util.function.Function<GeohexGridAggregation.Builder,ObjectBuilder<GeohexGridAggregation>> fn) -
_aggregationKind
Aggregation variant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
field
public final java.lang.String 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
@Nullable public final java.lang.Integer 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 -
size
@Nullable public final java.lang.Integer size()Maximum number of buckets to return.API name:
size -
shardSize
@Nullable public final java.lang.Integer shardSize()Number of buckets returned from each shard.API name:
shard_size -
serializeInternal
- Overrides:
serializeInternalin classAggregationBase
-
setupGeohexGridAggregationDeserializer
protected static void setupGeohexGridAggregationDeserializer(ObjectDeserializer<GeohexGridAggregation.Builder> op)
-