public abstract static class Terms.Order extends Object implements ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
Terms.Order() |
| Modifier and Type | Method and Description |
|---|---|
static Terms.Order |
aggregation(String path,
boolean asc)
Creates a bucket ordering strategy which sorts buckets based on a single-valued calc get
|
static Terms.Order |
aggregation(String aggregationName,
String metricName,
boolean asc)
Creates a bucket ordering strategy which sorts buckets based on a multi-valued calc get
|
protected abstract Comparator<Terms.Bucket> |
comparator(Aggregator aggregator) |
static Terms.Order |
compound(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) |
static Terms.Order |
term(boolean asc) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoXContentpublic static Terms.Order count(boolean asc)
public static Terms.Order term(boolean asc)
public static Terms.Order aggregation(String path, boolean asc)
path - the name of the getasc - The direction of the order (ascending or descending)public static Terms.Order aggregation(String aggregationName, 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(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 Comparator<Terms.Bucket> comparator(Aggregator aggregator)
nullCopyright © 2009–2017. All rights reserved.