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() |
getName
List<? extends Histogram.Bucket> getBuckets()
getBuckets
in interface MultiBucketsAggregation
Histogram.Bucket getBucketByKey(String key)
getBucketByKey
in interface MultiBucketsAggregation
key
- The key of the bucket.Histogram.Bucket getBucketByKey(Number key)
key
- The key of the bucket.Copyright © 2009–2015. All rights reserved.