Package org.apache.beam.sdk.metrics
Class MetricResult<T>
java.lang.Object
org.apache.beam.sdk.metrics.MetricResult<T>
The results of a single current metric.
TODO(BEAM-6265): Decouple wire formats from internal formats, remove usage of MetricName.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttempted
(T update, BiFunction<T, T, T> combine) addCommitted
(T update, BiFunction<T, T, T> combine) static <T> MetricResult
<T> static <T> MetricResult
<T> static <T> MetricResult
<T> abstract T
Return the value of this metric across all attempts of executing all parts of the pipeline.Return the value of this metric across all successfully completed parts of the pipeline.Return the value of this metric across all attempts of executing all parts of the pipeline.abstract MetricKey
getKey()
getName()
Return the name of the metric.boolean
<V> MetricResult
<V>
-
Constructor Details
-
MetricResult
public MetricResult()
-
-
Method Details
-
getName
Return the name of the metric. -
getKey
-
getCommitted
Return the value of this metric across all successfully completed parts of the pipeline.Not all runners will support committed metrics. If they are not supported, the runner will throw an
UnsupportedOperationException
. -
hasCommitted
public boolean hasCommitted() -
getCommittedOrNull
Return the value of this metric across all attempts of executing all parts of the pipeline. -
getAttempted
Return the value of this metric across all attempts of executing all parts of the pipeline. -
transform
-
addAttempted
-
addCommitted
-
attempted
-
create
-
create
-