Class BucketSortPipelineAggregationBuilder

All Implemented Interfaces:
NamedWriteable, Writeable, ToXContent, ToXContentFragment, BaseAggregationBuilder

public class BucketSortPipelineAggregationBuilder
extends AbstractPipelineAggregationBuilder<BucketSortPipelineAggregationBuilder>
Builds a pipeline aggregation that allows sorting the buckets of its parent aggregation. The bucket _key, _count or sub-aggregations may be used as sort keys. Parameters from and size may also be set in order to truncate the result bucket list.