@Immutable public abstract static class AggregationData.DistributionData extends AggregationData
MeasureValue
s. Distribution stats include mean,
count, histogram, min, max and sum of squared deviations.AggregationData.CountData, AggregationData.DistributionData, AggregationData.LastValueDataDouble, AggregationData.LastValueDataLong, AggregationData.MeanData, AggregationData.SumDataDouble, AggregationData.SumDataLong
Modifier and Type | Method and Description |
---|---|
static AggregationData.DistributionData |
create(double mean,
long count,
double min,
double max,
double sumOfSquaredDeviations,
List<Long> bucketCounts)
Creates a
DistributionData . |
abstract List<Long> |
getBucketCounts()
Returns the aggregated bucket counts.
|
abstract long |
getCount()
Returns the aggregated count.
|
abstract double |
getMax()
Returns the maximum of the population values.
|
abstract double |
getMean()
Returns the aggregated mean.
|
abstract double |
getMin()
Returns the minimum of the population values.
|
abstract double |
getSumOfSquaredDeviations()
Returns the aggregated sum of squared deviations.
|
<T> T |
match(Function<? super AggregationData.SumDataDouble,T> p0,
Function<? super AggregationData.SumDataLong,T> p1,
Function<? super AggregationData.CountData,T> p2,
Function<? super AggregationData.DistributionData,T> p3,
Function<? super AggregationData.LastValueDataDouble,T> p4,
Function<? super AggregationData.LastValueDataLong,T> p5,
Function<? super AggregationData,T> defaultFunction)
Applies the given match function to the underlying data type.
|
public static AggregationData.DistributionData create(double mean, long count, double min, double max, double sumOfSquaredDeviations, List<Long> bucketCounts)
DistributionData
.mean
- mean value.count
- count value.min
- min value.max
- max value.sumOfSquaredDeviations
- sum of squared deviations.bucketCounts
- histogram bucket counts.DistributionData
.public abstract double getMean()
public abstract long getCount()
public abstract double getMin()
public abstract double getMax()
public abstract double getSumOfSquaredDeviations()
public abstract List<Long> getBucketCounts()
UnsupportedOperationException
.public final <T> T match(Function<? super AggregationData.SumDataDouble,T> p0, Function<? super AggregationData.SumDataLong,T> p1, Function<? super AggregationData.CountData,T> p2, Function<? super AggregationData.DistributionData,T> p3, Function<? super AggregationData.LastValueDataDouble,T> p4, Function<? super AggregationData.LastValueDataLong,T> p5, Function<? super AggregationData,T> defaultFunction)
AggregationData
match
in class AggregationData