Couchbase C++ SDK 1.0.2 (rev. 51f4775)
|
The Query Index Manager interface contains the means for managing indexes used for queries. More...
#include <couchbase/collection_query_index_manager.hxx>
Public Member Functions | |
void | get_all_indexes (const get_all_query_indexes_options &options, get_all_query_indexes_handler &&handler) const |
Get all indexes within the collection. | |
auto | get_all_indexes (const get_all_query_indexes_options &options) const -> std::future< std::pair< error, std::vector< couchbase::management::query_index > > > |
Get all indexes within the collection. | |
void | create_index (std::string index_name, std::vector< std::string > keys, const create_query_index_options &options, create_query_index_handler &&handler) const |
Create an index on the collection. | |
auto | create_index (std::string index_name, std::vector< std::string > keys, const create_query_index_options &options) const -> std::future< error > |
Create an index on the collection. | |
void | create_primary_index (const create_primary_query_index_options &options, create_primary_query_index_handler &&handler) const |
Create a primary index on the collection. | |
auto | create_primary_index (const create_primary_query_index_options &options) const -> std::future< error > |
Create a primary index on the collection. | |
void | drop_primary_index (const drop_primary_query_index_options &options, drop_primary_query_index_handler &&handler) const |
Drop primary index on the collection. | |
auto | drop_primary_index (const drop_primary_query_index_options &options) const -> std::future< error > |
Drop primary index on the collection. | |
void | drop_index (std::string index_name, const drop_query_index_options &options, drop_query_index_handler &&handler) const |
Drop specified query index in the collection. | |
auto | drop_index (std::string index_name, const drop_query_index_options &options) const -> std::future< error > |
Drop specified query index in the collection. | |
void | build_deferred_indexes (const build_query_index_options &options, build_deferred_query_indexes_handler &&handler) const |
Builds all currently deferred indexes in this collection. | |
auto | build_deferred_indexes (const build_query_index_options &options) const -> std::future< error > |
Builds all currently deferred indexes in this collection. | |
void | watch_indexes (std::vector< std::string > index_names, const watch_query_indexes_options &options, watch_query_indexes_handler &&handler) const |
Polls the state of a set of indexes, until they all are online. | |
auto | watch_indexes (std::vector< std::string > index_names, const watch_query_indexes_options &options) const -> std::future< error > |
Polls the state of a set of indexes, until they all are online. | |
Friends | |
class | collection |
The Query Index Manager interface contains the means for managing indexes used for queries.
|
nodiscard |
Builds all currently deferred indexes in this collection.
By default, this method will build the indexes on the collection.
options | optional parameters |
void build_deferred_indexes | ( | const build_query_index_options & | options, |
build_deferred_query_indexes_handler && | handler ) const |
Builds all currently deferred indexes in this collection.
By default, this method will build the indexes on the collection.
options | optional parameters |
handler | the handler that implements build_deferred_query_indexes_handler |
|
nodiscard |
Create an index on the collection.
index_name | name of the index |
keys | the keys to create the index over |
options | optional parameters |
void create_index | ( | std::string | index_name, |
std::vector< std::string > | keys, | ||
const create_query_index_options & | options, | ||
create_query_index_handler && | handler ) const |
Create an index on the collection.
index_name | name of the index |
keys | the keys to create the index over |
options | optional parameters |
handler | the handler that implements create_query_index_handler |
|
nodiscard |
Create a primary index on the collection.
options | optional parameters |
void create_primary_index | ( | const create_primary_query_index_options & | options, |
create_primary_query_index_handler && | handler ) const |
Create a primary index on the collection.
options | optional parameters |
handler | the handler that implements create_query_index_handler |
|
nodiscard |
Drop specified query index in the collection.
index_name | name of the index to drop |
options | optional parameters |
void drop_index | ( | std::string | index_name, |
const drop_query_index_options & | options, | ||
drop_query_index_handler && | handler ) const |
Drop specified query index in the collection.
index_name | name of the index to drop |
options | optional parameters |
handler | handler that implements drop_query_index_handler |
|
nodiscard |
Drop primary index on the collection.
options | optional parameters |
void drop_primary_index | ( | const drop_primary_query_index_options & | options, |
drop_primary_query_index_handler && | handler ) const |
Drop primary index on the collection.
options | optional parameters |
handler | the handler that implements drop_query_index_handler |
|
nodiscard |
Get all indexes within the collection.
options | optional parameters |
void get_all_indexes | ( | const get_all_query_indexes_options & | options, |
get_all_query_indexes_handler && | handler ) const |
Get all indexes within the collection.
options | optional parameters |
handler | the handler that implements get_all_query_indexes_handler |
|
nodiscard |
Polls the state of a set of indexes, until they all are online.
index_names | names of the indexes to watch |
options | optional parameters |
void watch_indexes | ( | std::vector< std::string > | index_names, |
const watch_query_indexes_options & | options, | ||
watch_query_indexes_handler && | handler ) const |
Polls the state of a set of indexes, until they all are online.
index_names | names of the indexes to watch |
options | optional parameters |
handler | handler that implements watch_query_indexes_handler |
|
friend |