Class TermsAggregation
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.AggregationBase
org.opensearch.client.opensearch._types.aggregations.BucketAggregationBase
org.opensearch.client.opensearch._types.aggregations.TermsAggregation
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,AggregationVariant,ToCopyableBuilder<TermsAggregation.Builder,TermsAggregation>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TermsAggregation
extends BucketAggregationBase
implements AggregationVariant, ToCopyableBuilder<TermsAggregation.Builder,TermsAggregation>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.aggregations.BucketAggregationBase
BucketAggregationBase.AbstractBuilder<BuilderT extends BucketAggregationBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TermsAggregation> Json deserializer forTermsAggregation -
Method Summary
Modifier and TypeMethodDescriptionAggregationvariant kind.static TermsAggregation.Builderbuilder()API name:collect_modebooleanfinal TermsExcludeexclude()API name:excludeAPI name:execution_hintfinal Stringfield()API name:fieldfinal Stringformat()API name:formatinthashCode()final TermsIncludeinclude()API name:includefinal IntegerOnly return values that are found in more thanmin_doc_counthits.final FieldValuemissing()API name:missingfinal BooleanAPI name:missing_bucketfinal MissingOrderAPI name:missing_orderstatic TermsAggregationorder()API name:orderfinal Scriptscript()API name:scriptprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal IntegerThe number of candidate terms produced by each shard.final BooleanSet totrueto return thedoc_count_error_upper_bound, which is an upper bound to the error on thedoc_countreturned by each shard.final Integersize()The number of buckets returned out of the overall terms list.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final StringCoerced unmapped fields into the specified type.Methods inherited from class org.opensearch.client.opensearch._types.aggregations.BucketAggregationBase
setupBucketAggregationBaseDeserializerMethods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregationBase
meta, name, serialize, setupAggregationBaseDeserializerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.opensearch._types.aggregations.AggregationVariant
toAggregationMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forTermsAggregation
-
-
Method Details
-
of
public static TermsAggregation of(Function<TermsAggregation.Builder, ObjectBuilder<TermsAggregation>> fn) -
_aggregationKind
Aggregationvariant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
collectMode
API name:collect_mode -
exclude
API name:exclude -
executionHint
API name:execution_hint -
field
API name:field -
format
API name:format -
include
API name:include -
minDocCount
Only return values that are found in more thanmin_doc_counthits.API name:
min_doc_count -
missing
API name:missing -
missingBucket
API name:missing_bucket -
missingOrder
API name:missing_order -
order
API name:order -
script
API name:script -
shardSize
The number of candidate terms produced by each shard. By default,shard_sizewill be automatically estimated based on the number of shards and thesizeparameter.API name:
shard_size -
showTermDocCountError
Set totrueto return thedoc_count_error_upper_bound, which is an upper bound to the error on thedoc_countreturned by each shard.API name:
show_term_doc_count_error -
size
The number of buckets returned out of the overall terms list.API name:
size -
valueType
Coerced unmapped fields into the specified type.API name:
value_type -
serializeInternal
- Overrides:
serializeInternalin classAggregationBase
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TermsAggregation.Builder,TermsAggregation> - Returns:
- a new builder instance.
-
builder
-
setupTermsAggregationDeserializer
protected static void setupTermsAggregationDeserializer(ObjectDeserializer<TermsAggregation.Builder> op) -
hashCode
public int hashCode()- Overrides:
hashCodein classBucketAggregationBase
-
equals
- Overrides:
equalsin classBucketAggregationBase
-