Package io.opencensus.stats
Class AggregationData.MeanData
- java.lang.Object
-
- io.opencensus.stats.AggregationData
-
- io.opencensus.stats.AggregationData.MeanData
-
- Direct Known Subclasses:
AutoValue_AggregationData_MeanData
- Enclosing class:
- AggregationData
@Immutable @Deprecated public abstract static class AggregationData.MeanData extends AggregationData
Deprecated.since 0.13, useAggregationData.DistributionData
instead.The mean value of aggregatedMeasureValue
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 Constructor Description MeanData()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AggregationData.MeanData
create(double mean, long count)
Deprecated.Creates aMeanData
.abstract long
getCount()
Deprecated.Returns the aggregated count.abstract double
getMean()
Deprecated.Returns the aggregated mean.<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)
Deprecated.Applies the given match function to the underlying data type.
-
-
-
Method Detail
-
create
public static AggregationData.MeanData create(double mean, long count)
Deprecated.Creates aMeanData
.- Parameters:
mean
- the aggregated mean.count
- the aggregated count.- Returns:
- a
MeanData
. - Since:
- 0.8
-
getMean
public abstract double getMean()
Deprecated.Returns the aggregated mean.- Returns:
- the aggregated mean.
- Since:
- 0.8
-
getCount
public abstract long getCount()
Deprecated.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)
Deprecated.Description copied from class:AggregationData
Applies the given match function to the underlying data type.- Specified by:
match
in classAggregationData
-
-