public enum ScanConsistency extends Enum<ScanConsistency>
The possible values for scan_consistency in a N1QL request.
Enum Constant and Description |
---|
NOT_BOUNDED
This is the default (for single-statement requests).
|
REQUEST_PLUS
This implements strong consistency per request.
|
STATEMENT_PLUS
This implements strong consistency per statement.
|
Modifier and Type | Method and Description |
---|---|
String |
n1ql() |
static ScanConsistency |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScanConsistency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScanConsistency NOT_BOUNDED
public static final ScanConsistency REQUEST_PLUS
public static final ScanConsistency STATEMENT_PLUS
public static ScanConsistency[] values()
for (ScanConsistency c : ScanConsistency.values()) System.out.println(c);
public static ScanConsistency 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 String n1ql()
Copyright © 2014 Couchbase, Inc.