public final class DistributionAggregationDescriptor
extends java.lang.Object
A distribution aggregation may optionally contain a histogram of the values in the
population. The bucket boundaries for that histogram are described by
getBucketBoundaries, which defines getBucketBoundaries.size() + 1 (= N)
buckets. The boundaries for bucket index i are:
Note: If N = 1, there are no finite buckets and the single bucket is both the overflow and underflow bucket.
| Modifier and Type | Method and Description |
|---|---|
static DistributionAggregationDescriptor |
create()
Constructs a new
DistributionAggregationDescriptor without the optional
histogram bucket boundaries. |
static DistributionAggregationDescriptor |
create(java.util.List<java.lang.Double> bucketBoundaries)
Constructs a new
DistributionAggregationDescriptor with the optional
histogram bucket boundaries. |
java.util.List<java.lang.Double> |
getBucketBoundaries()
The optional histogram bucket boundaries for a distribution.
|
public static DistributionAggregationDescriptor create(java.util.List<java.lang.Double> bucketBoundaries)
DistributionAggregationDescriptor with the optional
histogram bucket boundaries.public static DistributionAggregationDescriptor create()
DistributionAggregationDescriptor without the optional
histogram bucket boundaries.public java.util.List<java.lang.Double> getBucketBoundaries()
Note: The returned list is unmodifiable, attempts to update it will throw an UnsupportedOperationException.