public static enum ScannerContext.NextState extends Enum<ScannerContext.NextState>
InternalScanner.next(List)
Enum Constant and Description |
---|
BATCH_LIMIT_REACHED |
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
|
Modifier and Type | Field and Description |
---|---|
private boolean |
limitReached |
private boolean |
moreValues |
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreValues() |
static boolean |
hasMoreValues(ScannerContext.NextState state) |
static boolean |
isValidState(ScannerContext.NextState state) |
boolean |
limitReached()
Returns true when the state indicates that a limit has been reached and scan should stop
|
static ScannerContext.NextState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScannerContext.NextState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScannerContext.NextState MORE_VALUES
public static final ScannerContext.NextState NO_MORE_VALUES
public static final ScannerContext.NextState SIZE_LIMIT_REACHED
public static final ScannerContext.NextState SIZE_LIMIT_REACHED_MID_ROW
public static final ScannerContext.NextState TIME_LIMIT_REACHED
public static final ScannerContext.NextState TIME_LIMIT_REACHED_MID_ROW
public static final ScannerContext.NextState BATCH_LIMIT_REACHED
private final boolean moreValues
private final boolean limitReached
public static ScannerContext.NextState[] values()
for (ScannerContext.NextState c : ScannerContext.NextState.values()) System.out.println(c);
public static ScannerContext.NextState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean hasMoreValues()
public boolean limitReached()
public static boolean isValidState(ScannerContext.NextState state)
public static boolean hasMoreValues(ScannerContext.NextState state)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.