public class QueryIndex extends Object
Constructor and Description |
---|
QueryIndex(JsonObject raw) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
condition()
Return the
String representation of the index's condition (the WHERE clause of the index), or an empty
Optional if no condition was set. |
boolean |
equals(Object o) |
int |
hashCode() |
JsonArray |
indexKey()
Return an
array of Strings that represent the index key(s). |
String |
keyspace() |
String |
name() |
String |
namespace() |
Optional<String> |
partition()
If present, returns the configured partition for the index.
|
boolean |
primary() |
JsonObject |
raw() |
String |
state() |
String |
toString() |
String |
type() |
public QueryIndex(JsonObject raw)
public boolean primary()
public String name()
public String type()
public String state()
public String keyspace()
public String namespace()
keyspace()
public JsonArray indexKey()
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 Optional<String> condition()
String
representation of the index's condition (the WHERE clause of the index), or an empty
Optional 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 Optional<String> partition()
public JsonObject raw()
Copyright © 2021 Couchbase, Inc.. All rights reserved.