public static class CoderProperties.TestElementByteSizeObserver
extends org.apache.beam.sdk.util.common.ElementByteSizeObserver
ElementByteSizeObserver
that records the observed element sizes for testing
purposes.Constructor and Description |
---|
TestElementByteSizeObserver() |
Modifier and Type | Method and Description |
---|---|
long |
getCount() |
double |
getMean() |
long |
getSum() |
long |
getSumAndReset() |
protected void |
reportElementSize(long elementByteSize)
Called to report element byte size.
|
void |
reset() |
protected void reportElementSize(long elementByteSize)
org.apache.beam.sdk.util.common.ElementByteSizeObserver
reportElementSize
in class org.apache.beam.sdk.util.common.ElementByteSizeObserver
public double getMean()
public long getSum()
public long getCount()
public void reset()
public long getSumAndReset()