Class GeoCentroidAggregate
- java.lang.Object
-
- org.opensearch.client.opensearch._types.aggregations.AggregateBase
-
- org.opensearch.client.opensearch._types.aggregations.GeoCentroidAggregate
-
- All Implemented Interfaces:
JsonpSerializable,AggregateVariant
@JsonpDeserializable public class GeoCentroidAggregate extends AggregateBase implements AggregateVariant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeoCentroidAggregate.BuilderBuilder forGeoCentroidAggregate.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._types.aggregations.AggregateBase
AggregateBase.AbstractBuilder<BuilderT extends AggregateBase.AbstractBuilder<BuilderT>>
-
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<GeoCentroidAggregate>_DESERIALIZERJson deserializer forGeoCentroidAggregate
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Aggregate.Kind_aggregateKind()Aggregate variant kind.longcount()Required - API name:countGeoLocationlocation()API name:locationstatic GeoCentroidAggregateof(java.util.function.Function<GeoCentroidAggregate.Builder,ObjectBuilder<GeoCentroidAggregate>> fn)protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupGeoCentroidAggregateDeserializer(ObjectDeserializer<GeoCentroidAggregate.Builder> op)-
Methods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregateBase
meta, serialize, setupAggregateBaseDeserializer
-
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.AggregateVariant
_toAggregate
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<GeoCentroidAggregate> _DESERIALIZER
Json deserializer forGeoCentroidAggregate
-
-
Method Detail
-
of
public static GeoCentroidAggregate of(java.util.function.Function<GeoCentroidAggregate.Builder,ObjectBuilder<GeoCentroidAggregate>> fn)
-
_aggregateKind
public Aggregate.Kind _aggregateKind()
Aggregate variant kind.- Specified by:
_aggregateKindin interfaceAggregateVariant
-
count
public final long count()
Required - 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 classAggregateBase
-
setupGeoCentroidAggregateDeserializer
protected static void setupGeoCentroidAggregateDeserializer(ObjectDeserializer<GeoCentroidAggregate.Builder> op)
-
-