@API(value=INTERNAL) public interface RecordScanLimiter
ExecuteState.getRecordScanLimiter()
Modifier and Type | Method and Description |
---|---|
int |
getLimit()
Get the record scan limit.
|
int |
getRecordsScanned()
Returns the number of records that have been scanned thus far.
|
boolean |
isEnforcing()
Return whether or not this limiter has an actual limit.
|
RecordScanLimiter |
reset()
Create a new
RecordScanLimiter with this limiter's original limit, ignoring any calls to tryRecordScan() . |
boolean |
tryRecordScan()
Atomically decrement the counter and return false if falls below 0.
|
@Nonnull RecordScanLimiter reset()
RecordScanLimiter
with this limiter's original limit, ignoring any calls to tryRecordScan()
.boolean isEnforcing()
true
if the limiter is enforcing a limit.boolean tryRecordScan()
true
if the remaining count is at least 0, and false
if it is less than 0int getLimit()
int getRecordsScanned()