Class BucketSortPipelineAggregationBuilder

All Implemented Interfaces:
NamedWriteable, Writeable, Rewriteable<PipelineAggregationBuilder>, BaseAggregationBuilder, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.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.