Package org.apache.beam.sdk.io
Class TextRowCountEstimator.LimitNumberOfTotalBytes
- java.lang.Object
-
- org.apache.beam.sdk.io.TextRowCountEstimator.LimitNumberOfTotalBytes
-
- All Implemented Interfaces:
TextRowCountEstimator.SamplingStrategy
- Enclosing class:
- TextRowCountEstimator
public static class TextRowCountEstimator.LimitNumberOfTotalBytes extends java.lang.Object implements TextRowCountEstimator.SamplingStrategy
This strategy stops sampling when total number of sampled bytes are more than some threshold.
-
-
Constructor Summary
Constructors Constructor Description LimitNumberOfTotalBytes(long limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
stopSampling(int numberOfFiles, long totalReadBytes)
-
-
-
Method Detail
-
stopSampling
public boolean stopSampling(int numberOfFiles, long totalReadBytes)
- Specified by:
stopSampling
in interfaceTextRowCountEstimator.SamplingStrategy
-
-