Enum Class ScannerContext.LimitScope
java.lang.Object
java.lang.Enum<ScannerContext.LimitScope>
org.apache.hadoop.hbase.regionserver.ScannerContext.LimitScope
- All Implemented Interfaces:
Serializable
,Comparable<ScannerContext.LimitScope>
,Constable
- Enclosing class:
- ScannerContext
The various scopes where a limit can be enforced. Used to differentiate when a limit should be
enforced or not.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEnforcing a limit between cells means that the limit will be considered after each full cell has been retrievedEnforcing a limit between rows means that the limit will not be considered until all the cells for a particular row have been retrieved -
Field Summary
Modifier and TypeFieldDescription(package private) final int
When enforcing a limit, we must check that the scope is appropriate for enforcement. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) boolean
canEnforceLimitFromScope
(ScannerContext.LimitScope checkerScope) (package private) final int
depth()
static ScannerContext.LimitScope
Returns the enum constant of this class with the specified name.static ScannerContext.LimitScope[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BETWEEN_ROWS
Enforcing a limit between rows means that the limit will not be considered until all the cells for a particular row have been retrieved -
BETWEEN_CELLS
Enforcing a limit between cells means that the limit will be considered after each full cell has been retrieved
-
-
Field Details
-
depth
When enforcing a limit, we must check that the scope is appropriate for enforcement.To communicate this concept, each scope has a depth. A limit will be enforced if the depth of the checker's scope is less than or equal to the limit's scope. This means that when checking limits, the checker must know their own scope (i.e. are they checking the limits between rows, between cells, etc...)
-
-
Constructor Details
-
LimitScope
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
depth
-
canEnforceLimitFromScope
- Parameters:
checkerScope
- The scope in which the limit is being checked- Returns:
- true when the checker is in a scope that indicates the limit can be enforced. Limits can be enforced from "higher or equal" scopes (i.e. the checker's scope is at a lesser depth than the limit)
-