Class GeoCentroidAggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase
co.elastic.clients.elasticsearch._types.aggregations.GeoCentroidAggregation
- All Implemented Interfaces:
AggregationVariant
,JsonpSerializable
@JsonpDeserializable public class GeoCentroidAggregation extends MetricAggregationBase implements AggregationVariant
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoCentroidAggregation.Builder
Builder forGeoCentroidAggregation
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase
MetricAggregationBase.AbstractBuilder<BuilderT extends MetricAggregationBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GeoCentroidAggregation>
_DESERIALIZER
Json deserializer forGeoCentroidAggregation
-
Method Summary
Modifier and Type Method Description Aggregation.Kind
_aggregationKind()
Aggregation variant kind.java.lang.Long
count()
API name:count
GeoLocation
location()
API name:location
static GeoCentroidAggregation
of(java.util.function.Function<GeoCentroidAggregation.Builder,ObjectBuilder<GeoCentroidAggregation>> fn)
protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupGeoCentroidAggregationDeserializer(ObjectDeserializer<GeoCentroidAggregation.Builder> op)
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase
field, missing, script, serialize, setupMetricAggregationBaseDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch._types.aggregations.AggregationVariant
_toAggregation
-
Field Details
-
_DESERIALIZER
Json deserializer forGeoCentroidAggregation
-
-
Method Details
-
of
public static GeoCentroidAggregation of(java.util.function.Function<GeoCentroidAggregation.Builder,ObjectBuilder<GeoCentroidAggregation>> fn) -
_aggregationKind
Aggregation variant kind.- Specified by:
_aggregationKind
in interfaceAggregationVariant
-
count
@Nullable public final java.lang.Long count()API name:count
-
location
API name:location
-
serializeInternal
- Overrides:
serializeInternal
in classMetricAggregationBase
-
setupGeoCentroidAggregationDeserializer
protected static void setupGeoCentroidAggregationDeserializer(ObjectDeserializer<GeoCentroidAggregation.Builder> op)
-