Class GeoHashGridAggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
co.elastic.clients.elasticsearch._types.aggregations.GeoHashGridAggregation
- All Implemented Interfaces:
AggregationVariant,JsonpSerializable
@JsonpDeserializable
public class GeoHashGridAggregation
extends BucketAggregationBase
implements AggregationVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.aggregations.BucketAggregationBase
BucketAggregationBase.AbstractBuilder<BuilderT extends BucketAggregationBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GeoHashGridAggregation>Json deserializer forGeoHashGridAggregation -
Method Summary
Modifier and TypeMethodDescriptionAggregation variant kind.final GeoBoundsbounds()The bounding box to filter the points in each bucket.final Stringfield()Field containing indexedgeo_pointorgeo_shapevalues.static GeoHashGridAggregationfinal GeoHashPrecisionThe string length of the geohashes used to define cells/buckets in the results.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal IntegerAllows for more accurate counting of the top cells returned in the final result the aggregation.final Integersize()The maximum number of geohash buckets to return.toString()Methods 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 forGeoHashGridAggregation
-
-
Method Details
-
of
public static GeoHashGridAggregation of(Function<GeoHashGridAggregation.Builder, ObjectBuilder<GeoHashGridAggregation>> fn) -
_aggregationKind
Aggregation variant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
bounds
The bounding box to filter the points in each bucket.API name:
bounds -
field
Field containing indexedgeo_pointorgeo_shapevalues. If the field contains an array,geohash_gridaggregates all array values.API name:
field -
precision
The string length of the geohashes used to define cells/buckets in the results.API name:
precision -
shardSize
Allows for more accurate counting of the top cells returned in the final result the aggregation. Defaults to returningmax(10,(size x number-of-shards))buckets from each shard.API name:
shard_size -
size
The maximum number of geohash buckets to return.API name:
size -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupGeoHashGridAggregationDeserializer
protected static void setupGeoHashGridAggregationDeserializer(ObjectDeserializer<GeoHashGridAggregation.Builder> op)
-