Class ScannerContext.LimitFields
java.lang.Object
org.apache.hadoop.hbase.regionserver.ScannerContext.LimitFields
- Enclosing class:
- ScannerContext
The different fields that can be used as limits in calls to
InternalScanner.next(java.util.List)
and InternalScanner.next(java.util.List)
-
Field Summary
Modifier and TypeFieldDescription(package private) int
(package private) long
(package private) long
private static int
Default values of the limit fields.private static final ScannerContext.LimitScope
Default scope that is assigned to a limit if a scope is not specified.private static long
private static long
(package private) long
(package private) ScannerContext.LimitScope
(package private) long
(package private) ScannerContext.LimitScope
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) boolean
canEnforceBatchLimitFromScope
(ScannerContext.LimitScope checkerScope) Returns true when the limit can be enforced from the scope of the checker(package private) boolean
canEnforceSizeLimitFromScope
(ScannerContext.LimitScope checkerScope) Returns true when the limit can be enforced from the scope of the checker(package private) boolean
canEnforceTimeLimitFromScope
(ScannerContext.LimitScope checkerScope) Returns true when the limit can be enforced from the scope of the checker(package private) void
copy
(ScannerContext.LimitFields limitsToCopy) (package private) int
getBatch()
(package private) long
(package private) long
(package private) long
(package private) ScannerContext.LimitScope
ReturnsScannerContext.LimitScope
indicating scope in which the size limit is enforced(package private) long
getTime()
(package private) ScannerContext.LimitScope
ReturnsScannerContext.LimitScope
indicating scope in which the time limit is enforced(package private) void
setBatch
(int batch) (package private) void
setBlockSize
(long blockSize) (package private) void
setDataSize
(long dataSize) (package private) void
setFields
(int batch, ScannerContext.LimitScope sizeScope, long dataSize, long heapSize, long blockSize, ScannerContext.LimitScope timeScope, long time) Set all fields together.(package private) void
setHeapSize
(long heapSize) (package private) void
Change the scope in which the size limit is enforced(package private) void
setTime
(long time) (package private) void
Change the scope in which the time limit is enforcedtoString()
-
Field Details
-
DEFAULT_BATCH
Default values of the limit fields. Defined such that if a field does NOT change from its default, it will not be enforced -
DEFAULT_SIZE
-
DEFAULT_TIME
-
DEFAULT_SCOPE
Default scope that is assigned to a limit if a scope is not specified. -
batch
int batch -
sizeScope
-
dataSize
long dataSize -
heapSize
long heapSize -
blockSize
long blockSize -
timeScope
-
time
long time
-
-
Constructor Details
-
LimitFields
Fields keep their default values.
-
-
Method Details
-
copy
-
setFields
void setFields(int batch, ScannerContext.LimitScope sizeScope, long dataSize, long heapSize, long blockSize, ScannerContext.LimitScope timeScope, long time) Set all fields together. -
getBatch
int getBatch() -
setBatch
-
canEnforceBatchLimitFromScope
Returns true when the limit can be enforced from the scope of the checker -
getDataSize
long getDataSize() -
getHeapSize
long getHeapSize() -
getBlockSize
long getBlockSize() -
setDataSize
-
setHeapSize
-
setBlockSize
-
getSizeScope
ReturnsScannerContext.LimitScope
indicating scope in which the size limit is enforced -
setSizeScope
Change the scope in which the size limit is enforced -
canEnforceSizeLimitFromScope
Returns true when the limit can be enforced from the scope of the checker -
getTime
long getTime() -
setTime
-
getTimeScope
ReturnsScannerContext.LimitScope
indicating scope in which the time limit is enforced -
setTimeScope
Change the scope in which the time limit is enforced -
canEnforceTimeLimitFromScope
Returns true when the limit can be enforced from the scope of the checker -
toString
-