34#ifndef COUCHBASE_CXX_CLIENT_DOXYGEN
39class query_index_manager_impl;
77 -> std::future<std::pair<error, std::vector<management::query_index>>>;
92 std::string index_name,
93 std::vector<std::string> keys,
110 std::string index_name,
111 std::vector<std::string> keys,
113 -> std::future<error>;
141 -> std::future<error>;
169 -> std::future<error>;
183 std::string index_name,
198 [[nodiscard]]
auto drop_index(
const std::string& bucket_name,
199 std::string index_name,
201 -> std::future<error>;
233 -> std::future<error>;
247 std::vector<std::string> index_names,
263 std::vector<std::string> index_names,
265 -> std::future<error>;
272 std::shared_ptr<query_index_manager_impl> impl_;
Options for query_index_manager::build_deferred_indexes().
Definition build_query_index_options.hxx:37
The cluster is the main entry point when connecting to a Couchbase cluster.
Definition cluster.hxx:60
Definition create_primary_query_index_options.hxx:30
Definition create_query_index_options.hxx:30
Definition drop_primary_query_index_options.hxx:29
Definition drop_query_index_options.hxx:29
Definition get_all_query_indexes_options.hxx:33
The Query Index Manager interface contains the means for managing indexes used for queries.
Definition query_index_manager.hxx:49
auto build_deferred_indexes(const std::string &bucket_name, const build_query_index_options &options) const -> std::future< error >
Builds all currently deferred indexes.
auto drop_index(const std::string &bucket_name, std::string index_name, const drop_query_index_options &options) const -> std::future< error >
Drop specified query index.
auto create_index(const std::string &bucket_name, std::string index_name, std::vector< std::string > keys, const create_query_index_options &options) const -> std::future< error >
Create an index on a bucket.
void create_index(const std::string &bucket_name, 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 a bucket.
void watch_indexes(const std::string &bucket_name, 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.
void build_deferred_indexes(const std::string &bucket_name, const build_query_index_options &options, build_deferred_query_indexes_handler &&handler) const
Builds all currently deferred indexes.
auto create_primary_index(const std::string &bucket_name, const create_primary_query_index_options &options) const -> std::future< error >
Create a primary index on a bucket.
auto drop_primary_index(const std::string &bucket_name, const drop_primary_query_index_options &options) const -> std::future< error >
Drop primary index on a bucket.
void get_all_indexes(const std::string &bucket_name, const get_all_query_indexes_options &options, get_all_query_indexes_handler &&handler) const
Get all indexes within a bucket.
auto get_all_indexes(const std::string &bucket_name, const get_all_query_indexes_options &options) const -> std::future< std::pair< error, std::vector< management::query_index > > >
Get all indexes within a bucket.
auto watch_indexes(const std::string &bucket_name, 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.
void create_primary_index(const std::string &bucket_name, const create_primary_query_index_options &options, create_primary_query_index_handler &&handler) const
Create a primary index on a bucket.
void drop_index(const std::string &bucket_name, std::string index_name, const drop_query_index_options &options, drop_query_index_handler &&handler) const
Drop specified query index.
void drop_primary_index(const std::string &bucket_name, const drop_primary_query_index_options &options, drop_primary_query_index_handler &&handler) const
Drop primary index on a bucket.
Definition watch_query_indexes_options.hxx:29
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
std::function< void(error)> drop_query_index_handler
The signature for the handler of the query_index_manager::get_all_indexes() operation.
Definition drop_query_index_options.hxx:84
std::function< void(error)> create_query_index_handler
The signature for the handler of the query_index_manager::get_all_indexes() operation.
Definition create_query_index_options.hxx:139
std::function< void(error)> watch_query_indexes_handler
The signature for the handler of the query_index_manager::get_all_indexes() operation.
Definition watch_query_indexes_options.hxx:83
std::function< void(error)> create_primary_query_index_handler
The signature for the handler of the query_index_manager::get_all_indexes() operation.
Definition create_primary_query_index_options.hxx:137
std::function< void(error)> build_deferred_query_indexes_handler
The signature for the handler of the query_index_manager::build_deferred_indexes() operation.
Definition build_query_index_options.hxx:68
std::function< void(error)> drop_primary_query_index_handler
The signature for the handler of the query_index_manager::get_all_indexes() operation.
Definition drop_primary_query_index_options.hxx:98
std::function< void(error, std::vector< management::query_index >)> get_all_query_indexes_handler
The signature for the handler of the query_index_manager::get_all_indexes() operation.
Definition get_all_query_indexes_options.hxx:68