@Immutable public abstract static class Aggregation.Distribution extends Aggregation
MeasureValue
s. Distribution includes mean,
count, histogram, min, max and sum of squared deviations.Aggregation.Count, Aggregation.Distribution, Aggregation.LastValue, Aggregation.Mean, Aggregation.Sum
Modifier and Type | Method and Description |
---|---|
static Aggregation.Distribution |
create(BucketBoundaries bucketBoundaries)
Construct a
Distribution . |
abstract BucketBoundaries |
getBucketBoundaries()
Returns the
Distribution 's bucket boundaries. |
<T> T |
match(Function<? super Aggregation.Sum,T> p0,
Function<? super Aggregation.Count,T> p1,
Function<? super Aggregation.Distribution,T> p2,
Function<? super Aggregation.LastValue,T> p3,
Function<? super Aggregation,T> defaultFunction)
Applies the given match function to the underlying data type.
|
public static Aggregation.Distribution create(BucketBoundaries bucketBoundaries)
Distribution
.Distribution
.public abstract BucketBoundaries getBucketBoundaries()
Distribution
's bucket boundaries.Distribution
's bucket boundaries.public final <T> T match(Function<? super Aggregation.Sum,T> p0, Function<? super Aggregation.Count,T> p1, Function<? super Aggregation.Distribution,T> p2, Function<? super Aggregation.LastValue,T> p3, Function<? super Aggregation,T> defaultFunction)
Aggregation
match
in class Aggregation