Writeable
, ToXContent
, ToXContentObject
public static class InternalOrder.CompoundOrder extends BucketOrder
MultiBucketsAggregation.Bucket
ordering strategy to sort by multiple criteria.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY_PARAMS
Modifier and Type | Method | Description |
---|---|---|
java.util.Comparator<MultiBucketsAggregation.Bucket> |
comparator(Aggregator aggregator) |
|
boolean |
equals(java.lang.Object obj) |
|
int |
hashCode() |
|
java.util.List<BucketOrder> |
orderElements() |
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
aggregation, aggregation, compound, compound, count, key, toString, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public java.util.List<BucketOrder> orderElements()
BucketOrder
s to sort on.public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
public java.util.Comparator<MultiBucketsAggregation.Bucket> comparator(Aggregator aggregator)
comparator
in class BucketOrder
- 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
.
public int hashCode()
hashCode
in class BucketOrder
public boolean equals(java.lang.Object obj)
equals
in class BucketOrder