public static enum ScannerContext.LimitScope extends Enum<ScannerContext.LimitScope>
Enum Constant and Description |
---|
BETWEEN_CELLS
Enforcing a limit between cells means that the limit will be considered after each full cell
has been retrieved
|
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
|
Modifier and Type | Field and Description |
---|---|
(package private) int |
depth
When enforcing a limit, we must check that the scope is appropriate for enforcement.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
canEnforceLimitFromScope(ScannerContext.LimitScope checkerScope) |
(package private) int |
depth() |
static ScannerContext.LimitScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScannerContext.LimitScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScannerContext.LimitScope BETWEEN_ROWS
public static final ScannerContext.LimitScope BETWEEN_CELLS
final int depth
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...)
public static ScannerContext.LimitScope[] values()
for (ScannerContext.LimitScope c : ScannerContext.LimitScope.values()) System.out.println(c);
public static ScannerContext.LimitScope 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 nullfinal int depth()
boolean canEnforceLimitFromScope(ScannerContext.LimitScope checkerScope)
checkerScope
- The scope in which the limit is being checkedCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.