public abstract class TypedMetricResult extends MetricResult
Base class for metric results that expose their values via getters.
Constructor and Description |
---|
TypedMetricResult() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
getColumns(Class<? extends TypedMetricResult> type)
Get the columns for a typed metric result class.
|
static List<String> |
getColumns(Class<? extends TypedMetricResult> type,
String suffix)
Get the columns for a typed metric result class.
|
Map<String,Object> |
getValues()
Get the column values for this metric result.
|
empty, fromMap, fromNullable, singleton, withPrefix, withSuffix
public static List<String> getColumns(Class<? extends TypedMetricResult> type)
Get the columns for a typed metric result class.
type
- The result class.type
.@Nonnull public static List<String> getColumns(@Nullable Class<? extends TypedMetricResult> type, @Nullable String suffix)
Get the columns for a typed metric result class.
type
- The result class. If null
, an empty list of columns will be returned.suffix
- A suffix for column labels; if non-null
, will be appended to each column label separated with a period.type
.public Map<String,Object> getValues()
MetricResult
Get the column values for this metric result.
getValues
in class MetricResult