Package io.opencensus.stats
Class AggregationData.CountData
java.lang.Object
io.opencensus.stats.AggregationData
io.opencensus.stats.AggregationData.CountData
- Direct Known Subclasses:
AutoValue_AggregationData_CountData
- Enclosing class:
AggregationData
The count value of aggregated
MeasureValue
s.- Since:
- 0.8
-
Nested Class Summary
Nested classes/interfaces inherited from class io.opencensus.stats.AggregationData
AggregationData.CountData, AggregationData.DistributionData, AggregationData.LastValueDataDouble, AggregationData.LastValueDataLong, AggregationData.MeanData, AggregationData.SumDataDouble, AggregationData.SumDataLong
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AggregationData.CountData
create
(long count) Creates aCountData
.abstract long
getCount()
Returns the aggregated count.final <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
-
CountData
CountData()
-
-
Method Details
-
create
Creates aCountData
.- Parameters:
count
- the aggregated count.- Returns:
- a
CountData
. - Since:
- 0.8
-
getCount
public abstract long getCount()Returns the aggregated count.- Returns:
- the aggregated count.
- Since:
- 0.8
-
match
public final <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) Description copied from class:AggregationData
Applies the given match function to the underlying data type.- Specified by:
match
in classAggregationData
-