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 SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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_BATCHDefault 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_SCOPEDefault scope that is assigned to a limit if a scope is not specified.
- 
batchint batch
- 
sizeScope
- 
dataSizelong dataSize
- 
heapSizelong heapSize
- 
blockSizelong blockSize
- 
timeScope
- 
timelong time
 
- 
- 
Constructor Details- 
LimitFieldsFields keep their default values.
 
- 
- 
Method Details- 
copy
- 
setFieldsvoid setFields(int batch, ScannerContext.LimitScope sizeScope, long dataSize, long heapSize, long blockSize, ScannerContext.LimitScope timeScope, long time) Set all fields together.
- 
getBatchint getBatch()
- 
setBatch
- 
canEnforceBatchLimitFromScopeReturns true when the limit can be enforced from the scope of the checker
- 
getDataSizelong getDataSize()
- 
getHeapSizelong getHeapSize()
- 
getBlockSizelong getBlockSize()
- 
setDataSize
- 
setHeapSize
- 
setBlockSize
- 
getSizeScopeReturnsScannerContext.LimitScopeindicating scope in which the size limit is enforced
- 
setSizeScopeChange the scope in which the size limit is enforced
- 
canEnforceSizeLimitFromScopeReturns true when the limit can be enforced from the scope of the checker
- 
getTimelong getTime()
- 
setTime
- 
getTimeScopeReturnsScannerContext.LimitScopeindicating scope in which the time limit is enforced
- 
setTimeScopeChange the scope in which the time limit is enforced
- 
canEnforceTimeLimitFromScopeReturns true when the limit can be enforced from the scope of the checker
- 
toString
 
-