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