Class InternalOrder.CompoundOrder

    • Method Detail

      • orderElements

        public java.util.List<BucketOrder> orderElements()
        Returns:
        unmodifiable list of BucketOrders to sort on.
      • comparator

        public java.util.Comparator<MultiBucketsAggregation.Bucket> comparator​(Aggregator aggregator)
        Specified by:
        comparator in class BucketOrder
        Returns:
        A comparator for the bucket based on the given aggregator. The comparator is used in two phases:

        - aggregation phase, where each shard builds a list of buckets to be sent to the coordinating node. In this phase, the passed in aggregator will be the aggregator that aggregates the buckets on the shard level.

        - reduce phase, where the coordinating node gathers all the buckets from all the shards and reduces them to a final bucket list. In this case, the passed in aggregator will be null.

      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in class BucketOrder