Package io.opencensus.stats
Class Aggregation.Count
- java.lang.Object
-
- io.opencensus.stats.Aggregation
-
- io.opencensus.stats.Aggregation.Count
-
- Direct Known Subclasses:
AutoValue_Aggregation_Count
- Enclosing class:
- Aggregation
@Immutable public abstract static class Aggregation.Count extends Aggregation
Calculate count on aggregatedMeasureValue
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 Modifier and Type Field Description private static Aggregation.Count
INSTANCE
-
Constructor Summary
Constructors Constructor Description Count()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Aggregation.Count
create()
Construct aCount
.<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 Detail
-
INSTANCE
private static final Aggregation.Count INSTANCE
-
-
Method Detail
-
create
public static Aggregation.Count create()
Construct aCount
.- Returns:
- a new
Count
. - 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
-
-