Class GeoCentroidAggregation
- java.lang.Object
-
- org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase
-
- org.opensearch.client.opensearch._types.aggregations.GeoCentroidAggregation
-
- All Implemented Interfaces:
JsonpSerializable,AggregationVariant
@JsonpDeserializable public class GeoCentroidAggregation extends MetricAggregationBase implements AggregationVariant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeoCentroidAggregation.BuilderBuilder forGeoCentroidAggregation.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase
MetricAggregationBase.AbstractBuilder<BuilderT extends MetricAggregationBase.AbstractBuilder<BuilderT>>
-
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GeoCentroidAggregation>_DESERIALIZERJson deserializer forGeoCentroidAggregation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Aggregation.Kind_aggregationKind()Aggregation variant kind.java.lang.Longcount()API name:countGeoLocationlocation()API name:locationstatic GeoCentroidAggregationof(java.util.function.Function<GeoCentroidAggregation.Builder,ObjectBuilder<GeoCentroidAggregation>> fn)protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupGeoCentroidAggregationDeserializer(ObjectDeserializer<GeoCentroidAggregation.Builder> op)-
Methods inherited from class org.opensearch.client.opensearch._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 org.opensearch.client.opensearch._types.aggregations.AggregationVariant
_toAggregation
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<GeoCentroidAggregation> _DESERIALIZER
Json deserializer forGeoCentroidAggregation
-
-
Method Detail
-
of
public static GeoCentroidAggregation of(java.util.function.Function<GeoCentroidAggregation.Builder,ObjectBuilder<GeoCentroidAggregation>> fn)
-
_aggregationKind
public Aggregation.Kind _aggregationKind()
Aggregation variant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
count
@Nullable public final java.lang.Long count()
API name:count
-
location
@Nullable public final GeoLocation location()
API name:location
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Overrides:
serializeInternalin classMetricAggregationBase
-
setupGeoCentroidAggregationDeserializer
protected static void setupGeoCentroidAggregationDeserializer(ObjectDeserializer<GeoCentroidAggregation.Builder> op)
-
-