public abstract static class Terms.Order extends java.lang.Object implements ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
Order() |
Modifier and Type | Method and Description |
---|---|
static Terms.Order |
aggregation(java.lang.String path,
boolean asc)
Creates a bucket ordering strategy which sorts buckets based on a single-valued calc get
|
static Terms.Order |
aggregation(java.lang.String aggregationName,
java.lang.String metricName,
boolean asc)
Creates a bucket ordering strategy which sorts buckets based on a multi-valued calc get
|
protected abstract java.util.Comparator<Terms.Bucket> |
comparator(Aggregator aggregator) |
static Terms.Order |
compound(java.util.List<Terms.Order> orders)
Creates a bucket ordering strategy which sorts buckets based multiple criteria
|
static Terms.Order |
compound(Terms.Order... orders)
Creates a bucket ordering strategy which sorts buckets based multiple criteria
|
static Terms.Order |
count(boolean asc) |
abstract boolean |
equals(java.lang.Object obj) |
abstract int |
hashCode() |
static Terms.Order |
term(boolean asc) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment, toXContent
public static Terms.Order count(boolean asc)
public static Terms.Order term(boolean asc)
public static Terms.Order aggregation(java.lang.String path, boolean asc)
path
- the name of the getasc
- The direction of the order (ascending or descending)public static Terms.Order aggregation(java.lang.String aggregationName, java.lang.String metricName, boolean asc)
aggregationName
- the name of the getmetricName
- The name of the value of the multi-value get by which the sorting will be appliedasc
- The direction of the order (ascending or descending)public static Terms.Order compound(java.util.List<Terms.Order> orders)
orders
- a list of Terms.Order
objects to sort on, in order of prioritypublic static Terms.Order compound(Terms.Order... orders)
orders
- a list of Terms.Order
parameters to sort on, in order of priorityprotected abstract java.util.Comparator<Terms.Bucket> comparator(Aggregator aggregator)
null
public abstract int hashCode()
hashCode
in class java.lang.Object
public abstract boolean equals(java.lang.Object obj)
equals
in class java.lang.Object