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 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.
      Specified by:
      update in interface Histogram
    • update

      public void update(double... values)
      Description copied from interface: Histogram
      Add observations to this histogram.
      Specified by:
      update in interface Histogram
    • getName

      public MetricName getName()
      Description copied from interface: Metric
      The MetricName given to this metric.
      Specified by:
      getName in interface Metric