@NotThreadSafe public final class MetricValue extends Object
Modifier and Type | Method and Description |
---|---|
static MetricValue |
forDouble(double doubleValue) |
static MetricValue |
forLong(long longValue) |
static MetricValue |
fromThrift(MetricValue metricValue)
Converts a thrift type to a wire type.
|
Double |
getDoubleValue() |
Long |
getLongValue() |
String |
toString() |
MetricValue |
toThrift() |
public static MetricValue forDouble(double doubleValue)
doubleValue
- the double value to setpublic static MetricValue forLong(long longValue)
longValue
- the long value to setpublic Double getDoubleValue()
public Long getLongValue()
public MetricValue toThrift()
public static MetricValue fromThrift(MetricValue metricValue)
metricValue
- the thrift representation of a metric valueCopyright © 2023. All Rights Reserved.