Interface ThroughputEstimator<T>
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BytesThroughputEstimator,NullThroughputEstimator
An estimator to calculate the throughput of the outputted elements from a DoFn.
-
Method Details
-
update
Updates the estimator with the size of the records.- Parameters:
timeOfRecords- the committed timestamp of the recordselement- the element to estimate the byte size of
-
get
default double get()Returns the estimated throughput for now. -
getFrom
double getFrom(com.google.cloud.Timestamp time) Returns the estimated throughput for a specified time.- Parameters:
time- the specified timestamp to check throughput
-