Enum Class ScannerContext.NextState
java.lang.Object
java.lang.Enum<ScannerContext.NextState>
org.apache.hadoop.hbase.regionserver.ScannerContext.NextState
- All Implemented Interfaces:
Serializable
,Comparable<ScannerContext.NextState>
,Constable
- Enclosing class:
- ScannerContext
The possible states a scanner may be in following a call to
InternalScanner.next(List)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSpecial case of size limit reached to indicate that the size limit was reached in the middle of a row and thus a partial results was formedSpecial case of time limit reached to indicate that the time limit was reached in the middle of a row and thus a partial results was formed -
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static boolean
static boolean
boolean
Returns true when the state indicates that a limit has been reached and scan should stopstatic ScannerContext.NextState
Returns the enum constant of this class with the specified name.static ScannerContext.NextState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MORE_VALUES
-
NO_MORE_VALUES
-
SIZE_LIMIT_REACHED
-
SIZE_LIMIT_REACHED_MID_ROW
Special case of size limit reached to indicate that the size limit was reached in the middle of a row and thus a partial results was formed -
TIME_LIMIT_REACHED
-
TIME_LIMIT_REACHED_MID_ROW
Special case of time limit reached to indicate that the time limit was reached in the middle of a row and thus a partial results was formed -
BATCH_LIMIT_REACHED
-
-
Field Details
-
moreValues
-
limitReached
-
-
Constructor Details
-
NextState
-
-
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
-
hasMoreValues
- Returns:
- true when the state indicates that more values may follow those that have been returned
-
limitReached
Returns true when the state indicates that a limit has been reached and scan should stop -
isValidState
-
hasMoreValues
-