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
AggregationData is the result of applying a given Aggregation to a set of
MeasureValues.
AggregationData currently supports 6 types of basic aggregation values:
- SumDataDouble
- SumDataLong
- CountData
- DistributionData
- LastValueDataDouble
- LastValueDataLong
ViewData will contain one AggregationData, corresponding to its Aggregation definition in View.
- Since:
- 0.8
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe count value of aggregatedMeasureValues.static classThe distribution stats of aggregatedMeasureValues.static classThe last value of aggregatedMeasureValueDoubles.static classThe last value of aggregatedMeasureValueLongs.static classDeprecated.static classThe sum value of aggregatedMeasureValueDoubles.static classThe sum value of aggregatedMeasureValueLongs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <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.
-
Constructor Details
-
AggregationData
private AggregationData()
-
-
Method Details
-
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
-
AggregationData.DistributionDatainstead.