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 Object
implements TextRowCountEstimator.SamplingStrategy
This strategy stops sampling when total number of sampled bytes are more than some threshold.
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
LimitNumberOfTotalBytes
public LimitNumberOfTotalBytes(long limit)  
 - 
 - 
Method Details
- 
stopSampling
public boolean stopSampling(int numberOfFiles, long totalReadBytes) - Specified by:
 stopSamplingin interfaceTextRowCountEstimator.SamplingStrategy
 
 -