Package io.opencensus.stats
Class Aggregation.Distribution
- java.lang.Object
-
- io.opencensus.stats.Aggregation
-
- io.opencensus.stats.Aggregation.Distribution
-
- Direct Known Subclasses:
AutoValue_Aggregation_Distribution
- Enclosing class:
- Aggregation
@Immutable public abstract static class Aggregation.Distribution extends Aggregation
Calculate distribution stats on aggregatedMeasureValue
s. Distribution includes 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.Aggregation
Aggregation.Count, Aggregation.Distribution, Aggregation.LastValue, Aggregation.Mean, Aggregation.Sum
-
-
Constructor Summary
Constructors Constructor Description Distribution()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Aggregation.Distribution
create(BucketBoundaries bucketBoundaries)
Construct aDistribution
.abstract BucketBoundaries
getBucketBoundaries()
Returns theDistribution
'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.
-
-
-
Method Detail
-
create
public static Aggregation.Distribution create(BucketBoundaries bucketBoundaries)
Construct aDistribution
.- Returns:
- a new
Distribution
. - Since:
- 0.8
-
getBucketBoundaries
public abstract BucketBoundaries getBucketBoundaries()
Returns theDistribution
's bucket boundaries.- Returns:
- the
Distribution
's bucket boundaries. - Since:
- 0.8
-
match
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)
Description copied from class:Aggregation
Applies the given match function to the underlying data type.- Specified by:
match
in classAggregation
-
-