public abstract static class Histogram.Order extends java.lang.Object implements ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static Histogram.Order |
COUNT_ASC |
static Histogram.Order |
COUNT_DESC |
static Histogram.Order |
KEY_ASC |
static Histogram.Order |
KEY_DESC |
EMPTY_PARAMS| Constructor and Description |
|---|
Order() |
| Modifier and Type | Method and Description |
|---|---|
static Histogram.Order |
aggregation(java.lang.String path,
boolean asc)
Creates a bucket ordering strategy that sorts buckets based on a single-valued calc sug-aggregation
|
static Histogram.Order |
aggregation(java.lang.String aggregationName,
java.lang.String valueName,
boolean asc)
Creates a bucket ordering strategy that sorts buckets based on a multi-valued calc sug-aggregation
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragment, toXContentpublic static final Histogram.Order KEY_ASC
public static final Histogram.Order KEY_DESC
public static final Histogram.Order COUNT_ASC
public static final Histogram.Order COUNT_DESC
public static Histogram.Order aggregation(java.lang.String path, boolean asc)
path - the name of the aggregationasc - The direction of the order (ascending or descending)public static Histogram.Order aggregation(java.lang.String aggregationName, java.lang.String valueName, boolean asc)
aggregationName - the name of the aggregationvalueName - 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)