@Internal public class CoderSizeEstimator<T> extends java.lang.Object implements SizeEstimator<T>, java.io.Serializable
Coder to calculate the size of the element.| Constructor and Description |
|---|
CoderSizeEstimator(org.apache.beam.sdk.coders.Coder<T> coder) |
| Modifier and Type | Method and Description |
|---|---|
long |
sizeOf(T element)
Estimates the size in bytes of the given element with the configured
Coder . |
public CoderSizeEstimator(org.apache.beam.sdk.coders.Coder<T> coder)
public long sizeOf(T element)
Coder .sizeOf in interface SizeEstimator<T>element - the element instance to be estimated