@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(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 long sizeOf(T element)
Coder
.sizeOf
in interface SizeEstimator<T>
element
- the element instance to be estimated