primary
public boolean primary()
public class QueryIndex extends Object
Constructor | Description |
---|---|
QueryIndex(JsonObject raw) |
Modifier and Type | Method | 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() |
|
boolean |
primary() |
|
JsonObject |
raw() |
|
String |
state() |
|
String |
toString() |
|
String |
type() |
keyspace()
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).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).