Class Aggregation.LastValue
java.lang.Object
io.opencensus.stats.Aggregation
io.opencensus.stats.Aggregation.LastValue
- Direct Known Subclasses:
AutoValue_Aggregation_LastValue
- Enclosing class:
Aggregation
Calculate the last value of aggregated
MeasureValues.- Since:
- 0.13
-
Nested Class Summary
Nested classes/interfaces inherited from class Aggregation
Aggregation.Count, Aggregation.Distribution, Aggregation.LastValue, Aggregation.Mean, Aggregation.Sum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Aggregation.LastValuecreate()Construct aLastValue.final <T> Tmatch(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
-
LastValue
LastValue()
-
-
Method Details
-
create
Construct aLastValue.- Returns:
- a new
LastValue. - Since:
- 0.13
-
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:AggregationApplies the given match function to the underlying data type.- Specified by:
matchin classAggregation
-