public static interface BucketsAggregationType.Builder extends SdkPojo, CopyableBuilder<BucketsAggregationType.Builder,BucketsAggregationType>
| Modifier and Type | Method and Description |
|---|---|
default BucketsAggregationType.Builder |
termsAggregation(Consumer<TermsAggregation.Builder> termsAggregation)
Performs an aggregation that will return a list of buckets.
|
BucketsAggregationType.Builder |
termsAggregation(TermsAggregation termsAggregation)
Performs an aggregation that will return a list of buckets.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildBucketsAggregationType.Builder termsAggregation(TermsAggregation termsAggregation)
Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of the number of occurrences of an aggregation field value.
termsAggregation - Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of
the number of occurrences of an aggregation field value.default BucketsAggregationType.Builder termsAggregation(Consumer<TermsAggregation.Builder> termsAggregation)
Performs an aggregation that will return a list of buckets. The list of buckets is a ranked list of the number of occurrences of an aggregation field value.
This is a convenience method that creates an instance of theTermsAggregation.Builder avoiding the
need to create one manually via TermsAggregation.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to termsAggregation(TermsAggregation).
termsAggregation - a consumer that will call methods on TermsAggregation.BuildertermsAggregation(TermsAggregation)Copyright © 2022. All rights reserved.