private static class ScannerContext.LimitFields extends Object
InternalScanner.next(java.util.List)
and InternalScanner.next(java.util.List)
Modifier and Type | Field and Description |
---|---|
(package private) int |
batch |
private static int |
DEFAULT_BATCH
Default values of the limit fields.
|
private static ScannerContext.LimitScope |
DEFAULT_SCOPE
Default scope that is assigned to a limit if a scope is not specified.
|
private static long |
DEFAULT_SIZE |
private static long |
DEFAULT_TIME |
(package private) long |
size |
(package private) ScannerContext.LimitScope |
sizeScope |
(package private) long |
time |
(package private) ScannerContext.LimitScope |
timeScope |
Constructor and Description |
---|
ScannerContext.LimitFields()
Fields keep their default values.
|
ScannerContext.LimitFields(int batch,
ScannerContext.LimitScope sizeScope,
long size,
ScannerContext.LimitScope timeScope,
long time) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
canEnforceBatchLimitFromScope(ScannerContext.LimitScope checkerScope) |
(package private) boolean |
canEnforceSizeLimitFromScope(ScannerContext.LimitScope checkerScope) |
(package private) boolean |
canEnforceTimeLimitFromScope(ScannerContext.LimitScope checkerScope) |
(package private) void |
copy(ScannerContext.LimitFields limitsToCopy) |
(package private) int |
getBatch() |
(package private) long |
getSize() |
(package private) ScannerContext.LimitScope |
getSizeScope() |
(package private) long |
getTime() |
(package private) ScannerContext.LimitScope |
getTimeScope() |
(package private) void |
setBatch(int batch) |
(package private) void |
setFields(int batch,
ScannerContext.LimitScope sizeScope,
long size,
ScannerContext.LimitScope timeScope,
long time)
Set all fields together.
|
(package private) void |
setSize(long size) |
(package private) void |
setSizeScope(ScannerContext.LimitScope scope)
Change the scope in which the size limit is enforced
|
(package private) void |
setTime(long time) |
(package private) void |
setTimeScope(ScannerContext.LimitScope scope)
Change the scope in which the time limit is enforced
|
String |
toString() |
private static int DEFAULT_BATCH
private static long DEFAULT_SIZE
private static long DEFAULT_TIME
private static final ScannerContext.LimitScope DEFAULT_SCOPE
int batch
ScannerContext.LimitScope sizeScope
long size
ScannerContext.LimitScope timeScope
long time
ScannerContext.LimitFields()
ScannerContext.LimitFields(int batch, ScannerContext.LimitScope sizeScope, long size, ScannerContext.LimitScope timeScope, long time)
void copy(ScannerContext.LimitFields limitsToCopy)
void setFields(int batch, ScannerContext.LimitScope sizeScope, long size, ScannerContext.LimitScope timeScope, long time)
batch
- sizeScope
- size
- int getBatch()
void setBatch(int batch)
boolean canEnforceBatchLimitFromScope(ScannerContext.LimitScope checkerScope)
checkerScope
- long getSize()
void setSize(long size)
ScannerContext.LimitScope getSizeScope()
ScannerContext.LimitScope
indicating scope in which the size limit is enforcedvoid setSizeScope(ScannerContext.LimitScope scope)
boolean canEnforceSizeLimitFromScope(ScannerContext.LimitScope checkerScope)
checkerScope
- long getTime()
void setTime(long time)
ScannerContext.LimitScope getTimeScope()
ScannerContext.LimitScope
indicating scope in which the time limit is enforcedvoid setTimeScope(ScannerContext.LimitScope scope)
boolean canEnforceTimeLimitFromScope(ScannerContext.LimitScope checkerScope)
checkerScope
- Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.