Class NullThroughputEstimator<T>

java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.changestreams.estimator.NullThroughputEstimator<T>
All Implemented Interfaces:
Serializable, ThroughputEstimator<T>

public class NullThroughputEstimator<T> extends Object implements ThroughputEstimator<T>
NoOp implementation of a throughput estimator. This will always return 0 as the throughput and it will warn users that this is being used (it should not be used in production).
See Also:
  • Constructor Details

    • NullThroughputEstimator

      public NullThroughputEstimator()
  • Method Details

    • update

      public void update(com.google.cloud.Timestamp timeOfRecords, T element)
      NoOp.
      Specified by:
      update in interface ThroughputEstimator<T>
      Parameters:
      timeOfRecords - ignored
      element - ignored
    • getFrom

      public double getFrom(com.google.cloud.Timestamp time)
      Always returns 0.
      Specified by:
      getFrom in interface ThroughputEstimator<T>
      Parameters:
      time - ignored
      Returns:
      0