Class BucketSortPipelineAggregationBuilder

All Implemented Interfaces:
NamedWriteable, Writeable, Rewriteable<PipelineAggregationBuilder>, BaseAggregationBuilder, ToXContent, ToXContentFragment

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.