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()TheMetricNamegiven to this metric.voidupdate(double value) Add an observation to this histogram.voidupdate(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:HistogramAdd an observation to this histogram. - 
update
public void update(double... values) Description copied from interface:HistogramAdd observations to this histogram. - 
getName
Description copied from interface:MetricTheMetricNamegiven to this metric. 
 -