Couchbase C Client
3.3.14
Asynchronous C Client for Couchbase
|
#include <ixmgmt.h>
Data Fields | |
const char * | rawjson |
Raw JSON returned from server. | |
size_t | nrawjson |
const char * | name |
Name of the index. | |
size_t | nname |
const char * | keyspace |
Keyspace or "bucket" of the index. | |
size_t | nkeyspace |
const char * | nspace |
'namespace'. | |
size_t | nnspace |
const char * | state |
Output parameter only. | |
size_t | nstate |
const char * | fields |
Actual index text. | |
size_t | nfields |
const char * | cond |
Indexing condition. | |
size_t | ncond |
unsigned | flags |
Modifiers for the index itself. | |
unsigned | ixtype |
Type of this index, Can be LCB_N1XSPEC_T_DEFAULT for the default server type, or an explicit LCB_N1XSPEC_T_GSI or LCB_N1XSPEC_T_VIEW. | |
const char* rawjson |
Raw JSON returned from server.
Can be used to decode fields in future versions not present within the library.
This field can also be used as an input field to populate the other fields in this structure. This means that if you have a raw JSON representation of an index, you need only set this field (and nrawjson
). The library will internally parse the raw JSON and populate the internal equivalents of the fields in this structure.
Note that when using this field as an input for creating indexes, you should still set the flags field if you wish to set flags (e.g. in order to create a deferred-build index).
size_t nrawjson |
const char* name |
Name of the index.
For raw JSON, use the name
propery
size_t nname |
const char* keyspace |
Keyspace or "bucket" of the index.
For raw JSON, use the keyspace_id
property
size_t nkeyspace |
const char* nspace |
'namespace'.
Currently unused
size_t nnspace |
const char* state |
Output parameter only.
State of index
size_t nstate |
const char* fields |
Actual index text.
For raw JSON use the index_key
property. The value for this field is a properly-encoded JSON array of fields to index. e.g.
size_t nfields |
const char* cond |
Indexing condition.
If set, only field values matching this condition will be indexed
size_t ncond |
unsigned flags |
Modifiers for the index itself.
This might be LCB_N1XSPEC_F_PRIMARY if the index is primary. For raw JSON, use "is_primary":true
For creation the LCB_N1XSPEC_F_DEFER option is also accepted to indicate that the building of this index should be deferred.
unsigned ixtype |
Type of this index, Can be LCB_N1XSPEC_T_DEFAULT for the default server type, or an explicit LCB_N1XSPEC_T_GSI or LCB_N1XSPEC_T_VIEW.
When using JSON, specify "using":"gsi"