Class LongTermsAggregate
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.AggregateBase
org.opensearch.client.opensearch._types.aggregations.MultiBucketAggregateBase<LongTermsBucket>
org.opensearch.client.opensearch._types.aggregations.TermsAggregateBase<LongTermsBucket>
org.opensearch.client.opensearch._types.aggregations.LongTermsAggregate
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,AggregateVariant,ToCopyableBuilder<LongTermsAggregate.Builder,LongTermsAggregate>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class LongTermsAggregate
extends TermsAggregateBase<LongTermsBucket>
implements AggregateVariant, ToCopyableBuilder<LongTermsAggregate.Builder,LongTermsAggregate>
Result of a
terms aggregation when the field is some kind of whole number like a integer, long, or a date.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.aggregations.TermsAggregateBase
TermsAggregateBase.AbstractBuilder<TBucket,BuilderT extends TermsAggregateBase.AbstractBuilder<TBucket, BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<LongTermsAggregate> Json deserializer forLongTermsAggregate -
Method Summary
Modifier and TypeMethodDescriptionAggregatevariant kind.static LongTermsAggregate.Builderbuilder()booleaninthashCode()static LongTermsAggregateprotected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.aggregations.TermsAggregateBase
docCountErrorUpperBound, serializeInternal, setupTermsAggregateBaseDeserializer, sumOtherDocCountMethods inherited from class org.opensearch.client.opensearch._types.aggregations.MultiBucketAggregateBase
buckets, setupMultiBucketAggregateBaseDeserializerMethods 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 forLongTermsAggregate
-
-
Method Details
-
of
public static LongTermsAggregate of(Function<LongTermsAggregate.Builder, ObjectBuilder<LongTermsAggregate>> fn) -
_aggregateKind
Aggregatevariant kind.- Specified by:
_aggregateKindin interfaceAggregateVariant
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<LongTermsAggregate.Builder,LongTermsAggregate> - Returns:
- a new builder instance.
-
builder
-
setupLongTermsAggregateDeserializer
protected static void setupLongTermsAggregateDeserializer(ObjectDeserializer<LongTermsAggregate.Builder> op) -
hashCode
public int hashCode()- Overrides:
hashCodein classTermsAggregateBase<LongTermsBucket>
-
equals
- Overrides:
equalsin classTermsAggregateBase<LongTermsBucket>
-