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
FieldsModifier and TypeFieldDescription(package private) int(package private) long(package private) longprivate static intDefault values of the limit fields.private static final ScannerContext.LimitScopeDefault scope that is assigned to a limit if a scope is not specified.private static longprivate static long(package private) long(package private) ScannerContext.LimitScope(package private) long(package private) ScannerContext.LimitScope -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleancanEnforceBatchLimitFromScope(ScannerContext.LimitScope checkerScope) Returns true when the limit can be enforced from the scope of the checker(package private) booleancanEnforceSizeLimitFromScope(ScannerContext.LimitScope checkerScope) Returns true when the limit can be enforced from the scope of the checker(package private) booleancanEnforceTimeLimitFromScope(ScannerContext.LimitScope checkerScope) Returns true when the limit can be enforced from the scope of the checker(package private) voidcopy(ScannerContext.LimitFields limitsToCopy) (package private) intgetBatch()(package private) long(package private) long(package private) long(package private) ScannerContext.LimitScopeReturnsScannerContext.LimitScopeindicating scope in which the size limit is enforced(package private) longgetTime()(package private) ScannerContext.LimitScopeReturnsScannerContext.LimitScopeindicating scope in which the time limit is enforced(package private) voidsetBatch(int batch) (package private) voidsetBlockSize(long blockSize) (package private) voidsetDataSize(long dataSize) (package private) voidsetFields(int batch, ScannerContext.LimitScope sizeScope, long dataSize, long heapSize, long blockSize, ScannerContext.LimitScope timeScope, long time) Set all fields together.(package private) voidsetHeapSize(long heapSize) (package private) voidChange the scope in which the size limit is enforced(package private) voidsetTime(long time) (package private) voidChange 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.LimitScopeindicating 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.LimitScopeindicating 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
-