MongoDB C++ Driver mongocxx-4.0.0
|
#include <mongocxx/v_noabi/mongocxx/options/distinct.hpp>
Class representing the optional arguments to a MongoDB distinct command.
Public Member Functions | |
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > & | collation () const |
Retrieves the current collation for this operation. | |
distinct & | collation (bsoncxx::v_noabi::document::view_or_value collation) |
Sets the collation for this operation. | |
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > & | comment () const |
The current comment for this operation. | |
distinct & | comment (bsoncxx::v_noabi::types::bson_value::view_or_value comment) |
Sets the comment for this operation. | |
const bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > & | max_time () const |
The current max_time setting. | |
distinct & | max_time (std::chrono::milliseconds max_time) |
Sets the maximum amount of time for this operation to run (server-side) in milliseconds. | |
const bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::read_preference > & | read_preference () const |
The current read_preference for this operation. | |
distinct & | read_preference (mongocxx::v_noabi::read_preference rp) |
Sets the read_preference for this operation. | |
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > & mongocxx::v_noabi::options::distinct::collation | ( | ) | const |
Retrieves the current collation for this operation.
distinct & mongocxx::v_noabi::options::distinct::collation | ( | bsoncxx::v_noabi::document::view_or_value | collation | ) |
Sets the collation for this operation.
collation | The new collation. |
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > & mongocxx::v_noabi::options::distinct::comment | ( | ) | const |
The current comment for this operation.
distinct & mongocxx::v_noabi::options::distinct::comment | ( | bsoncxx::v_noabi::types::bson_value::view_or_value | comment | ) |
Sets the comment for this operation.
comment | The new comment. |
const bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > & mongocxx::v_noabi::options::distinct::max_time | ( | ) | const |
The current max_time setting.
distinct & mongocxx::v_noabi::options::distinct::max_time | ( | std::chrono::milliseconds | max_time | ) |
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
max_time | The max amount of time (in milliseconds). |
const bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::read_preference > & mongocxx::v_noabi::options::distinct::read_preference | ( | ) | const |
The current read_preference for this operation.
distinct & mongocxx::v_noabi::options::distinct::read_preference | ( | mongocxx::v_noabi::read_preference | rp | ) |
Sets the read_preference for this operation.
rp | The new read_preference. |