#include <mongocxx/v1/distinct_options.hpp>
Options for a "distinct" command.
Supported fields include:
Public Member Functions | |
| distinct_options () | |
| Default initialization. | |
| distinct_options (distinct_options &&other) noexcept | |
| Move constructor. | |
| distinct_options (distinct_options const &other) | |
| Copy construction. | |
| ~distinct_options () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | collation () const |
| Return the current "collation" field. | |
| distinct_options & | collation (bsoncxx::v1::document::value collation) |
| Set the "collation" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::types::view > | comment () const |
| Return the current "comment" field. | |
| distinct_options & | comment (bsoncxx::v1::types::value comment) |
| Set the "comment" field. | |
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > | max_time () const |
| Return the current "maxTimeMS" field. | |
| distinct_options & | max_time (std::chrono::milliseconds max_time) |
| Set the "maxTimeMS" field. | |
| distinct_options & | operator= (distinct_options &&other) noexcept |
| Move assignment. | |
| distinct_options & | operator= (distinct_options const &other) |
| Copy assignment. | |
| bsoncxx::v1::stdx::optional< v1::read_preference > | read_preference () const |
| Return the current "readPreference" field. | |
| distinct_options & | read_preference (v1::read_preference rp) |
| Set the "readPreference" field. | |
| mongocxx::v1::distinct_options::~distinct_options | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::distinct_options::distinct_options | ( | distinct_options const & | other | ) |
Copy construction.
| mongocxx::v1::distinct_options::distinct_options | ( | ) |
Default initialization.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::distinct_options::collation | ( | ) | const |
Return the current "collation" field.
| distinct_options & mongocxx::v1::distinct_options::collation | ( | bsoncxx::v1::document::value | collation | ) |
Set the "collation" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::types::view > mongocxx::v1::distinct_options::comment | ( | ) | const |
Return the current "comment" field.
| distinct_options & mongocxx::v1::distinct_options::comment | ( | bsoncxx::v1::types::value | comment | ) |
Set the "comment" field.
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > mongocxx::v1::distinct_options::max_time | ( | ) | const |
Return the current "maxTimeMS" field.
| distinct_options & mongocxx::v1::distinct_options::max_time | ( | std::chrono::milliseconds | max_time | ) |
Set the "maxTimeMS" field.
|
noexcept |
Move assignment.
| distinct_options & mongocxx::v1::distinct_options::operator= | ( | distinct_options const & | other | ) |
Copy assignment.
| bsoncxx::v1::stdx::optional< v1::read_preference > mongocxx::v1::distinct_options::read_preference | ( | ) | const |
Return the current "readPreference" field.
| distinct_options & mongocxx::v1::distinct_options::read_preference | ( | v1::read_preference | rp | ) |
Set the "readPreference" field.