Class GeoCentroidAggregate
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.AggregateBase
org.opensearch.client.opensearch._types.aggregations.GeoCentroidAggregate
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,AggregateVariant,ToCopyableBuilder<GeoCentroidAggregate.Builder,GeoCentroidAggregate>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class GeoCentroidAggregate
extends AggregateBase
implements AggregateVariant, ToCopyableBuilder<GeoCentroidAggregate.Builder,GeoCentroidAggregate>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.aggregations.AggregateBase
AggregateBase.AbstractBuilder<BuilderT extends AggregateBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GeoCentroidAggregate> Json deserializer forGeoCentroidAggregate -
Method Summary
Modifier and TypeMethodDescriptionAggregatevariant kind.static GeoCentroidAggregate.Builderbuilder()final longcount()Required - API name:countbooleaninthashCode()final GeoLocationlocation()API name:locationstatic GeoCentroidAggregateprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregateBase
meta, serialize, setupAggregateBaseDeserializerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.opensearch._types.aggregations.AggregateVariant
toAggregateMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forGeoCentroidAggregate
-
-
Method Details
-
of
public static GeoCentroidAggregate of(Function<GeoCentroidAggregate.Builder, ObjectBuilder<GeoCentroidAggregate>> fn) -
_aggregateKind
Aggregatevariant kind.- Specified by:
_aggregateKindin interfaceAggregateVariant
-
count
public final long count()Required - API name:count -
location
API name:location -
serializeInternal
- Overrides:
serializeInternalin classAggregateBase
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<GeoCentroidAggregate.Builder,GeoCentroidAggregate> - Returns:
- a new builder instance.
-
builder
-
setupGeoCentroidAggregateDeserializer
protected static void setupGeoCentroidAggregateDeserializer(ObjectDeserializer<GeoCentroidAggregate.Builder> op) -
hashCode
public int hashCode()- Overrides:
hashCodein classAggregateBase
-
equals
- Overrides:
equalsin classAggregateBase
-