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.
|
SECONDARY_READS
Allows querying of a replica.
|
SLAVE_OK
Deprecated.
since 3.0.2, use
SECONDARY_READS instead. |
| 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
@Deprecated public static final Meta.CursorOption SLAVE_OK
SECONDARY_READS instead.public static final Meta.CursorOption SECONDARY_READS
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–2022 Pivotal Software, Inc.. All rights reserved.