public static enum Meta.CursorOption extends Enum<Meta.CursorOption>
Meta.CursorOption represents OP_QUERY wire protocol flags to change the behavior of queries.| Enum Constant and Description |
|---|
EXHAUST
Sets the cursor to return all data returned by the query at once rather than splitting the results into batches.
|
NO_TIMEOUT
Prevents the server from timing out idle cursors.
|
PARTIAL
Sets the cursor to return partial data from a query against a sharded cluster in which some shards do not respond
rather than throwing an error.
|
SLAVE_OK
Allows querying of a replica slave.
|
| Modifier and Type | Method and Description |
|---|---|
static Meta.CursorOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Meta.CursorOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Meta.CursorOption NO_TIMEOUT
public static final Meta.CursorOption EXHAUST
public static final Meta.CursorOption SLAVE_OK
public static final Meta.CursorOption PARTIAL
public static Meta.CursorOption[] values()
for (Meta.CursorOption c : Meta.CursorOption.values()) System.out.println(c);
public static Meta.CursorOption 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 nullCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.