@API(value=INTERNAL) public class RecordScanLimiterFactory extends Object
RecordScanLimiter
s.Constructor and Description |
---|
RecordScanLimiterFactory() |
Modifier and Type | Method and Description |
---|---|
static RecordScanLimiter |
enforce(int limit)
Creates a limiter that enforces a maximum number of records that can be processed in a single scan.
|
static RecordScanLimiter |
tracking()
Creates a limiter that tracks the number of records that has been scanned, but does not impose a limit.
|
static RecordScanLimiter |
untracked()
Creates a limiter that neither enforces nor tracks the number of records scanned.
|
public static RecordScanLimiter enforce(int limit)
limit
- the maximum number of records that can be processed in a single scanpublic static RecordScanLimiter tracking()
public static RecordScanLimiter untracked()