Class BucketSortAggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
co.elastic.clients.elasticsearch._types.aggregations.BucketSortAggregation
- All Implemented Interfaces:
AggregationVariant,JsonpSerializable
@JsonpDeserializable
public class BucketSortAggregation
extends AggregationBase
implements AggregationVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregationBase
AggregationBase.AbstractBuilder<BuilderT extends AggregationBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<BucketSortAggregation>Json deserializer forBucketSortAggregation -
Method Summary
Modifier and TypeMethodDescriptionAggregation variant kind.final Integerfrom()Buckets in positions prior tofromwill be truncated.final GapPolicyThe policy to apply when gaps are found in the data.static BucketSortAggregationvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integersize()The number of buckets to return.final List<SortOptions>sort()The list of fields to sort on.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.aggregations.AggregationVariant
_toAggregation
-
Field Details
-
_DESERIALIZER
Json deserializer forBucketSortAggregation
-
-
Method Details
-
of
public static BucketSortAggregation of(Function<BucketSortAggregation.Builder, ObjectBuilder<BucketSortAggregation>> fn) -
_aggregationKind
Aggregation variant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
from
Buckets in positions prior tofromwill be truncated.API name:
from -
gapPolicy
The policy to apply when gaps are found in the data.API name:
gap_policy -
size
The number of buckets to return. Defaults to all buckets of the parent aggregation.API name:
size -
sort
The list of fields to sort on.API name:
sort -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupBucketSortAggregationDeserializer
protected static void setupBucketSortAggregationDeserializer(ObjectDeserializer<BucketSortAggregation.Builder> op)
-