@Experimental(value=METRICS) public abstract class DefaultMetricResult<T> extends java.lang.Object implements MetricResult<T>
Constructor and Description |
---|
DefaultMetricResult() |
Modifier and Type | Method and Description |
---|---|
static <T> DefaultMetricResult<T> |
create(MetricName name,
java.lang.String step,
T committed,
T attempted) |
abstract T |
getAttempted()
Return the value of this metric across all attempts of executing all parts of the pipeline.
|
abstract T |
getCommitted()
Return the value of this metric across all successfully completed parts of the pipeline.
|
abstract MetricName |
getName()
Return the name of the metric.
|
abstract java.lang.String |
getStep()
Return the step context to which this metric result applies.
|
public abstract MetricName getName()
MetricResult
getName
in interface MetricResult<T>
public abstract java.lang.String getStep()
MetricResult
getStep
in interface MetricResult<T>
public abstract T getCommitted()
MetricResult
Not all runners will support committed metrics. If they are not supported, the runner will
throw an UnsupportedOperationException
.
getCommitted
in interface MetricResult<T>
public abstract T getAttempted()
MetricResult
getAttempted
in interface MetricResult<T>
public static <T> DefaultMetricResult<T> create(MetricName name, java.lang.String step, T committed, T attempted)
create
in interface MetricResult<T>