Writeable
, ToXContent
, ToXContentObject
public static class InternalOrder.Aggregation extends InternalOrder
MultiBucketsAggregation.Bucket
ordering strategy to sort by a sub-aggregation.InternalOrder.Aggregation, InternalOrder.CompoundOrder, InternalOrder.Parser, InternalOrder.Streams
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
asc, comparator
EMPTY_PARAMS
Modifier and Type | Method | Description |
---|---|---|
java.util.Comparator<MultiBucketsAggregation.Bucket> |
comparator(Aggregator aggregator) |
|
AggregationPath |
path() |
aggregation, aggregation, compound, compound, count, key, toString, writeTo
equals, hashCode, isCountDesc, isKeyAsc, isKeyDesc, isKeyOrder, toXContent, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public AggregationPath path()
public java.util.Comparator<MultiBucketsAggregation.Bucket> comparator(Aggregator aggregator)
comparator
in class InternalOrder
- 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
.