Package org.apache.beam.sdk.metrics
Class DelegatingHistogram
java.lang.Object
org.apache.beam.sdk.metrics.DelegatingHistogram
- All Implemented Interfaces:
Serializable
,Histogram
,Metric
@Internal
public class DelegatingHistogram
extends Object
implements Metric, Histogram, Serializable
Implementation of
Histogram
that delegates to the instance for the current context.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingHistogram
(MetricName name, org.apache.beam.sdk.util.HistogramData.BucketType bucketType, boolean processWideContainer) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
TheMetricName
given to this metric.void
update
(double value) Add an observation to this histogram.void
update
(double... values) Add observations to this histogram.
-
Constructor Details
-
DelegatingHistogram
public DelegatingHistogram(MetricName name, org.apache.beam.sdk.util.HistogramData.BucketType bucketType, boolean processWideContainer) - Parameters:
name
- Metric name for this metric.bucketType
- Histogram bucketing strategy.processWideContainer
- Whether this Counter is stored in the ProcessWide container or the current thread's container.
-
-
Method Details
-
update
public void update(double value) Description copied from interface:Histogram
Add an observation to this histogram. -
update
public void update(double... values) Description copied from interface:Histogram
Add observations to this histogram. -
getName
Description copied from interface:Metric
TheMetricName
given to this metric.
-