public class IndexInfo extends Object
Contains meta-information about a N1QL index.
Modifier and Type | Field and Description |
---|---|
static String |
PRIMARY_DEFAULT_NAME |
Constructor and Description |
---|
IndexInfo(JsonObject raw) |
Modifier and Type | Method and Description |
---|---|
String |
condition()
Return the
String representation of the index’s condition (the WHERE clause of the index), or an empty String if no condition was set. |
boolean |
equals(Object o) |
int |
hashCode() |
JsonArray |
indexKey()
Return an
array of Strings that represent the index key(s). |
boolean |
isPrimary() |
String |
keyspace() |
String |
name() |
String |
namespace() |
JsonObject |
raw() |
String |
rawType() |
String |
state() |
String |
toString() |
IndexType |
type() |
public static final String PRIMARY_DEFAULT_NAME
public IndexInfo(JsonObject raw)
public boolean isPrimary()
public String name()
public IndexType type()
public String rawType()
public String state()
public String keyspace()
public String namespace()
keyspace()
public JsonArray indexKey()
Return an array
of Strings that represent the index key(s). The array is empty in the case of a PRIMARY INDEX. Note that the query service can present the key in a slightly different manner from when you declared the index: for instance, it will show the indexed fields in an escaped format (surrounded by backticks).
public String condition()
Return the String
representation of the index’s condition (the WHERE clause of the index), or an empty String if no condition was set.
Note that the query service can present the condition in a slightly different manner from when you declared the index: for instance it will wrap expressions with parentheses and show the fields in an escaped format (surrounded by backticks).
public JsonObject raw()
Copyright © 2015 Couchbase, Inc.