public enum StreamingMode extends java.lang.Enum<StreamingMode>
Transaction.getRange(...)
.Enum Constant and Description |
---|
EXACT
Infrequently used.
|
ITERATOR
The default.
|
LARGE
Infrequently used.
|
MEDIUM
Infrequently used.
|
SERIAL
Transfer data in batches large enough that an individual client can get reasonable read bandwidth from the database.
|
SMALL
Infrequently used.
|
WANT_ALL
Client intends to consume the entire range and would like it all transferred as early as possible.
|
Modifier and Type | Method and Description |
---|---|
int |
code()
Gets the FoundationDB native-level constant code for a
StreamingMode . |
static StreamingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StreamingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamingMode WANT_ALL
public static final StreamingMode ITERATOR
public static final StreamingMode EXACT
WANT_ALL
StreamingMode instead. A row limit must be specified if this mode is used.public static final StreamingMode SMALL
public static final StreamingMode MEDIUM
public static final StreamingMode LARGE
public static final StreamingMode SERIAL
public static StreamingMode[] values()
for (StreamingMode c : StreamingMode.values()) System.out.println(c);
public static StreamingMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int code()
StreamingMode
.StreamingMode
constant.