Package io.opencensus.stats
Class Aggregation.Sum
java.lang.Object
io.opencensus.stats.Aggregation
io.opencensus.stats.Aggregation.Sum
- Direct Known Subclasses:
AutoValue_Aggregation_Sum
- Enclosing class:
Aggregation
Calculate sum on aggregated
MeasureValue
s.- Since:
- 0.8
-
Nested Class Summary
Nested classes/interfaces inherited from class io.opencensus.stats.Aggregation
Aggregation.Count, Aggregation.Distribution, Aggregation.LastValue, Aggregation.Mean, Aggregation.Sum
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Aggregation.Sum
create()
Construct aSum
.final <T> T
match
(Function<? super Aggregation.Sum, T> p0, Function<? super Aggregation.Count, T> p1, Function<? super Aggregation.Distribution, T> p2, Function<? super Aggregation.LastValue, T> p3, Function<? super Aggregation, T> defaultFunction) Applies the given match function to the underlying data type.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Sum
Sum()
-
-
Method Details
-
create
Construct aSum
.- Returns:
- a new
Sum
. - Since:
- 0.8
-
match
public final <T> T match(Function<? super Aggregation.Sum, T> p0, Function<? super Aggregation.Count, T> p1, Function<? super Aggregation.Distribution, T> p2, Function<? super Aggregation.LastValue, T> p3, Function<? super Aggregation, T> defaultFunction) Description copied from class:Aggregation
Applies the given match function to the underlying data type.- Specified by:
match
in classAggregation
-