Class SizeEstimator<T>
java.lang.Object
org.apache.beam.sdk.io.gcp.spanner.changestreams.estimator.SizeEstimator<T>
- All Implemented Interfaces:
Serializable
This class is used to estimate the size in bytes of a given element. It uses the given
Coder to calculate the size of the element.- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SizeEstimator
-
-
Method Details
-
sizeOf
Estimates the size in bytes of the given element with the configuredCoder.- Parameters:
element- the element instance to be estimated- Returns:
- the estimated size in bytes of the given element
-