public class SizeEstimator<T>
extends java.lang.Object
implements java.io.Serializable
Coder
to calculate the size of the element.Constructor and Description |
---|
SizeEstimator(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 . |