public interface Range extends MultiBucketsAggregation
range aggregation. Defines multiple buckets, each associated with a pre-defined value range of a field,
and where the value of that fields in all documents in each bucket fall in the bucket's range.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Range.Bucket
A bucket associated with a specific range
|
| Modifier and Type | Method and Description |
|---|---|
Range.Bucket |
getBucketByKey(String key)
The bucket that is associated with the given key.
|
Collection<? extends Range.Bucket> |
getBuckets()
Return the buckets of this range aggregation.
|
getNameCollection<? extends Range.Bucket> getBuckets()
getBuckets in interface MultiBucketsAggregationRange.Bucket getBucketByKey(String key)
MultiBucketsAggregationgetBucketByKey in interface MultiBucketsAggregationkey - The key of the requested bucket.Copyright © 2009–2016. All rights reserved.