public interface Histogram extends MultiBucketsAggregation
histogram aggregation. Defines multiple buckets, each representing an interval in a histogram.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Histogram.Bucket
A bucket in the histogram where documents fall in
|
static class |
Histogram.Order
A strategy defining the order in which the buckets in this histogram are ordered.
|
| Modifier and Type | Method and Description |
|---|---|
Histogram.Bucket |
getBucketByKey(Number key)
Returns a bucket by the key associated with it.
|
Histogram.Bucket |
getBucketByKey(String key)
Returns a bucket by the key associated with it.
|
List<? extends Histogram.Bucket> |
getBuckets() |
getNameList<? extends Histogram.Bucket> getBuckets()
getBuckets in interface MultiBucketsAggregationHistogram.Bucket getBucketByKey(String key)
getBucketByKey in interface MultiBucketsAggregationkey - The key of the bucket.Histogram.Bucket getBucketByKey(Number key)
key - The key of the bucket.Copyright © 2009–2016. All rights reserved.