Class Value
java.lang.Object
io.opencensus.metrics.export.Value
The actual point value for a
Point.
Currently there are three types of Value:
doublelongDistribution
- Since:
- 0.17
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValuedistributionValue(Distribution value) Returns aDistributionValue.static ValuedoubleValue(double value) Returns a doubleValue.static ValuelongValue(long value) Returns a longValue.abstract <T> Tmatch(Function<? super Double, T> doubleFunction, Function<? super Long, T> longFunction, Function<? super Distribution, T> distributionFunction, Function<? super Summary, T> summaryFunction, Function<? super Value, T> defaultFunction) Applies the given match function to the underlying data type.static ValuesummaryValue(Summary value)
-
Method Details
-
doubleValue
-
longValue
-
distributionValue
Returns aDistributionValue.- Parameters:
value- value inDistribution.- Returns:
- a
DistributionValue. - Since:
- 0.17
-
summaryValue
-
match
public abstract <T> T match(Function<? super Double, T> doubleFunction, Function<? super Long, T> longFunction, Function<? super Distribution, T> distributionFunction, Function<? super Summary, T> summaryFunction, Function<? super Value, T> defaultFunction) Applies the given match function to the underlying data type.- Since:
- 0.17
-