Package io.opencensus.stats
Class AggregationData
- java.lang.Object
-
- io.opencensus.stats.AggregationData
-
- Direct Known Subclasses:
AggregationData.CountData,AggregationData.DistributionData,AggregationData.LastValueDataDouble,AggregationData.LastValueDataLong,AggregationData.MeanData,AggregationData.SumDataDouble,AggregationData.SumDataLong
@Immutable public abstract class AggregationData extends java.lang.ObjectAggregationDatais the result of applying a givenAggregationto a set ofMeasureValues.AggregationDatacurrently supports 6 types of basic aggregation values:- SumDataDouble
- SumDataLong
- CountData
- DistributionData
- LastValueDataDouble
- LastValueDataLong
ViewDatawill contain oneAggregationData, corresponding to itsAggregationdefinition inView.- Since:
- 0.8
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAggregationData.CountDataThe count value of aggregatedMeasureValues.static classAggregationData.DistributionDataThe distribution stats of aggregatedMeasureValues.static classAggregationData.LastValueDataDoubleThe last value of aggregatedMeasureValueDoubles.static classAggregationData.LastValueDataLongThe last value of aggregatedMeasureValueLongs.static classAggregationData.MeanDataDeprecated.since 0.13, useAggregationData.DistributionDatainstead.static classAggregationData.SumDataDoubleThe sum value of aggregatedMeasureValueDoubles.static classAggregationData.SumDataLongThe sum value of aggregatedMeasureValueLongs.
-
Constructor Summary
Constructors Modifier Constructor Description privateAggregationData()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <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
-
match
public abstract <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.- Since:
- 0.13
-
-