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
AggregationData
is the result of applying a given Aggregation
to a set of
MeasureValue
s.
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 class
The count value of aggregatedMeasureValue
s.static class
The distribution stats of aggregatedMeasureValue
s.static class
The last value of aggregatedMeasureValueDouble
s.static class
The last value of aggregatedMeasureValueLong
s.static class
Deprecated.static class
The sum value of aggregatedMeasureValueDouble
s.static class
The sum value of aggregatedMeasureValueLong
s. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <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.
-
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.DistributionData
instead.