Package io.opencensus.stats
Class AggregationData.SumDataDouble
- java.lang.Object
-
- io.opencensus.stats.AggregationData
-
- io.opencensus.stats.AggregationData.SumDataDouble
-
- Direct Known Subclasses:
AutoValue_AggregationData_SumDataDouble
- Enclosing class:
- AggregationData
@Immutable public abstract static class AggregationData.SumDataDouble extends AggregationData
The sum value of aggregatedMeasureValueDoubles.- 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 SumDataDouble()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static AggregationData.SumDataDoublecreate(double sum)Creates aSumDataDouble.abstract doublegetSum()Returns the aggregated sum.<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.
-
-
-
Method Detail
-
create
public static AggregationData.SumDataDouble create(double sum)
Creates aSumDataDouble.- Parameters:
sum- the aggregated sum.- Returns:
- a
SumDataDouble. - Since:
- 0.8
-
getSum
public abstract double getSum()
Returns the aggregated sum.- Returns:
- the aggregated sum.
- 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:AggregationDataApplies the given match function to the underlying data type.- Specified by:
matchin classAggregationData
-
-