public abstract static class Histogram.Order extends 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 |
---|
Histogram.Order() |
Modifier and Type | Method and Description |
---|---|
static Histogram.Order |
aggregation(String path,
boolean asc)
Creates a bucket ordering strategy that sorts buckets based on a single-valued calc sug-aggregation
|
static Histogram.Order |
aggregation(String aggregationName,
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, wait
toXContent
public 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(String path, boolean asc)
path
- the name of the aggregationasc
- The direction of the order (ascending or descending)public static Histogram.Order aggregation(String aggregationName, 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)Copyright © 2009–2017. All rights reserved.