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.Object
AggregationData
is the result of applying a givenAggregation
to a set ofMeasureValue
s.AggregationData
currently supports 6 types of basic aggregation values:- SumDataDouble
- SumDataLong
- CountData
- DistributionData
- LastValueDataDouble
- LastValueDataLong
ViewData
will contain oneAggregationData
, corresponding to itsAggregation
definition inView
.- Since:
- 0.8
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AggregationData.CountData
The count value of aggregatedMeasureValue
s.static class
AggregationData.DistributionData
The distribution stats of aggregatedMeasureValue
s.static class
AggregationData.LastValueDataDouble
The last value of aggregatedMeasureValueDouble
s.static class
AggregationData.LastValueDataLong
The last value of aggregatedMeasureValueLong
s.static class
AggregationData.MeanData
Deprecated.since 0.13, useAggregationData.DistributionData
instead.static class
AggregationData.SumDataDouble
The sum value of aggregatedMeasureValueDouble
s.static class
AggregationData.SumDataLong
The sum value of aggregatedMeasureValueLong
s.
-
Constructor Summary
Constructors Modifier Constructor Description private
AggregationData()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
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
-
-