Package io.opencensus.stats
Class AggregationData.DistributionData
- java.lang.Object
-
- io.opencensus.stats.AggregationData
-
- io.opencensus.stats.AggregationData.DistributionData
-
- Direct Known Subclasses:
AutoValue_AggregationData_DistributionData
- Enclosing class:
- AggregationData
@Immutable public abstract static class AggregationData.DistributionData extends AggregationData
The distribution stats of aggregatedMeasureValues. Distribution stats include mean, count, histogram, min, max and sum of squared deviations.- Since:
- 0.8
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.opencensus.stats.AggregationData
AggregationData.CountData, AggregationData.DistributionData, AggregationData.LastValueDataDouble, AggregationData.LastValueDataLong, AggregationData.MeanData, AggregationData.SumDataDouble, AggregationData.SumDataLong
-
-
Constructor Summary
Constructors Constructor Description DistributionData()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AggregationData.DistributionDatacreate(double mean, long count, double min, double max, double sumOfSquaredDeviations, java.util.List<java.lang.Long> bucketCounts)Deprecated.since 0.17.static AggregationData.DistributionDatacreate(double mean, long count, double min, double max, double sumOfSquaredDeviations, java.util.List<java.lang.Long> bucketCounts, java.util.List<Exemplar> exemplars)Deprecated.since 0.17.static AggregationData.DistributionDatacreate(double mean, long count, double sumOfSquaredDeviations, java.util.List<java.lang.Long> bucketCounts)Creates aDistributionData.static AggregationData.DistributionDatacreate(double mean, long count, double sumOfSquaredDeviations, java.util.List<java.lang.Long> bucketCounts, java.util.List<Exemplar> exemplars)Creates aDistributionData.abstract java.util.List<java.lang.Long>getBucketCounts()Returns the aggregated bucket counts.abstract longgetCount()Returns the aggregated count.abstract java.util.List<Exemplar>getExemplars()Returns theExemplars associated with histogram buckets.doublegetMax()Deprecated.since 0.17.abstract doublegetMean()Returns the aggregated mean.doublegetMin()Deprecated.since 0.17.abstract doublegetSumOfSquaredDeviations()Returns the aggregated sum of squared deviations.<T> Tmatch(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.
-
-
-
Method Detail
-
create
@Deprecated public static AggregationData.DistributionData create(double mean, long count, double min, double max, double sumOfSquaredDeviations, java.util.List<java.lang.Long> bucketCounts, java.util.List<Exemplar> exemplars)
Deprecated.since 0.17. Usecreate(double, long, double, List, List)Creates aDistributionData.- Parameters:
mean- mean value.count- count value.min- min value.max- max value.sumOfSquaredDeviations- sum of squared deviations.bucketCounts- histogram bucket counts.exemplars- the exemplars associated with histogram buckets.- Returns:
- a
DistributionData. - Since:
- 0.16
-
create
public static AggregationData.DistributionData create(double mean, long count, double sumOfSquaredDeviations, java.util.List<java.lang.Long> bucketCounts, java.util.List<Exemplar> exemplars)
Creates aDistributionData.- Parameters:
mean- mean value.count- count value.sumOfSquaredDeviations- sum of squared deviations.bucketCounts- histogram bucket counts.exemplars- the exemplars associated with histogram buckets.- Returns:
- a
DistributionData. - Since:
- 0.17
-
create
@Deprecated public static AggregationData.DistributionData create(double mean, long count, double min, double max, double sumOfSquaredDeviations, java.util.List<java.lang.Long> bucketCounts)
Deprecated.since 0.17. Usecreate(double, long, double, List).Creates aDistributionData.- Parameters:
mean- mean value.count- count value.min- min value.max- max value.sumOfSquaredDeviations- sum of squared deviations.bucketCounts- histogram bucket counts.- Returns:
- a
DistributionData. - Since:
- 0.8
-
create
public static AggregationData.DistributionData create(double mean, long count, double sumOfSquaredDeviations, java.util.List<java.lang.Long> bucketCounts)
Creates aDistributionData.- Parameters:
mean- mean value.count- count value.sumOfSquaredDeviations- sum of squared deviations.bucketCounts- histogram bucket counts.- Returns:
- a
DistributionData. - Since:
- 0.17
-
getMean
public abstract double getMean()
Returns the aggregated mean.- Returns:
- the aggregated mean.
- Since:
- 0.8
-
getCount
public abstract long getCount()
Returns the aggregated count.- Returns:
- the aggregated count.
- Since:
- 0.8
-
getMin
@Deprecated public double getMin()
Deprecated.since 0.17. Returns0.Returns the minimum of the population values.- Returns:
- the minimum of the population values.
- Since:
- 0.8
-
getMax
@Deprecated public double getMax()
Deprecated.since 0.17. Returns0.Returns the maximum of the population values.- Returns:
- the maximum of the population values.
- Since:
- 0.8
-
getSumOfSquaredDeviations
public abstract double getSumOfSquaredDeviations()
Returns the aggregated sum of squared deviations.- Returns:
- the aggregated sum of squared deviations.
- Since:
- 0.8
-
getBucketCounts
public abstract java.util.List<java.lang.Long> getBucketCounts()
Returns the aggregated bucket counts. The returned list is immutable, trying to update it will throw anUnsupportedOperationException.- Returns:
- the aggregated bucket counts.
- Since:
- 0.8
-
getExemplars
public abstract java.util.List<Exemplar> getExemplars()
Returns theExemplars associated with histogram buckets.- Returns:
- the
Exemplars associated with histogram buckets. - Since:
- 0.16
-
match
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)
Description copied from class:AggregationDataApplies the given match function to the underlying data type.- Specified by:
matchin classAggregationData
-
-