#include <mongocxx/v1/aggregate_options.hpp>
Options for an "aggregate" command.
Supported fields include:
Public Member Functions | |
| aggregate_options () | |
| Default initialization. | |
| aggregate_options (aggregate_options &&other) noexcept | |
| Move constructor. | |
| aggregate_options (aggregate_options const &other) | |
| Copy construction. | |
| ~aggregate_options () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< bool > | allow_disk_use () const |
| Return the current "allowDiskUse" field. | |
| aggregate_options & | allow_disk_use (bool allow_disk_use) |
| Set the "allowDiskUse" field. | |
| bsoncxx::v1::stdx::optional< std::int32_t > | batch_size () const |
| Return the current "batchSize" field. | |
| aggregate_options & | batch_size (std::int32_t batch_size) |
| Set the "batchSize" field. | |
| bsoncxx::v1::stdx::optional< bool > | bypass_document_validation () const |
| Return the current "bypassDocumentValidation" field. | |
| aggregate_options & | bypass_document_validation (bool bypass_document_validation) |
| Set the "bypassDocumentValidation" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | collation () const |
| Return the current "collation" field. | |
| aggregate_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. | |
| aggregate_options & | comment (bsoncxx::v1::types::value comment) |
| Set the "comment" field. | |
| bsoncxx::v1::stdx::optional< v1::hint > | hint () const |
| Return the current "hint" field. | |
| aggregate_options & | hint (v1::hint index_hint) |
| Set the "hint" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | let () const |
| Return the current "let" field. | |
| aggregate_options & | let (bsoncxx::v1::document::value let) |
| Set the "let" field. | |
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > | max_time () const |
| Return the current "maxTimeMS" field. | |
| aggregate_options & | max_time (std::chrono::milliseconds max_time) |
| Set the "maxTimeMS" field. | |
| aggregate_options & | operator= (aggregate_options &&other) noexcept |
| Move assignment. | |
| aggregate_options & | operator= (aggregate_options const &other) |
| Copy assignment. | |
| bsoncxx::v1::stdx::optional< v1::read_concern > | read_concern () const |
| Return the current "readConcern" field. | |
| aggregate_options & | read_concern (v1::read_concern read_concern) |
| Set the "readConcern" field. | |
| bsoncxx::v1::stdx::optional< v1::read_preference > | read_preference () const |
| Return the current "readPreference" field. | |
| aggregate_options & | read_preference (v1::read_preference rp) |
| Set the "readPreference" field. | |
| bsoncxx::v1::stdx::optional< v1::write_concern > | write_concern () const |
| Return the current "writeConcern" field. | |
| aggregate_options & | write_concern (v1::write_concern write_concern) |
| Set the "writeConcern" field. | |
| mongocxx::v1::aggregate_options::~aggregate_options | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::aggregate_options::aggregate_options | ( | aggregate_options const & | other | ) |
Copy construction.
| mongocxx::v1::aggregate_options::aggregate_options | ( | ) |
Default initialization.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::aggregate_options::allow_disk_use | ( | ) | const |
Return the current "allowDiskUse" field.
| aggregate_options & mongocxx::v1::aggregate_options::allow_disk_use | ( | bool | allow_disk_use | ) |
Set the "allowDiskUse" field.
| bsoncxx::v1::stdx::optional< std::int32_t > mongocxx::v1::aggregate_options::batch_size | ( | ) | const |
Return the current "batchSize" field.
| aggregate_options & mongocxx::v1::aggregate_options::batch_size | ( | std::int32_t | batch_size | ) |
Set the "batchSize" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::aggregate_options::bypass_document_validation | ( | ) | const |
Return the current "bypassDocumentValidation" field.
| aggregate_options & mongocxx::v1::aggregate_options::bypass_document_validation | ( | bool | bypass_document_validation | ) |
Set the "bypassDocumentValidation" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::aggregate_options::collation | ( | ) | const |
Return the current "collation" field.
| aggregate_options & mongocxx::v1::aggregate_options::collation | ( | bsoncxx::v1::document::value | collation | ) |
Set the "collation" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::types::view > mongocxx::v1::aggregate_options::comment | ( | ) | const |
Return the current "comment" field.
| aggregate_options & mongocxx::v1::aggregate_options::comment | ( | bsoncxx::v1::types::value | comment | ) |
Set the "comment" field.
| bsoncxx::v1::stdx::optional< v1::hint > mongocxx::v1::aggregate_options::hint | ( | ) | const |
Return the current "hint" field.
| aggregate_options & mongocxx::v1::aggregate_options::hint | ( | v1::hint | index_hint | ) |
Set the "hint" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::aggregate_options::let | ( | ) | const |
Return the current "let" field.
| aggregate_options & mongocxx::v1::aggregate_options::let | ( | bsoncxx::v1::document::value | let | ) |
Set the "let" field.
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > mongocxx::v1::aggregate_options::max_time | ( | ) | const |
Return the current "maxTimeMS" field.
| aggregate_options & mongocxx::v1::aggregate_options::max_time | ( | std::chrono::milliseconds | max_time | ) |
Set the "maxTimeMS" field.
|
noexcept |
Move assignment.
| aggregate_options & mongocxx::v1::aggregate_options::operator= | ( | aggregate_options const & | other | ) |
Copy assignment.
| bsoncxx::v1::stdx::optional< v1::read_concern > mongocxx::v1::aggregate_options::read_concern | ( | ) | const |
Return the current "readConcern" field.
| aggregate_options & mongocxx::v1::aggregate_options::read_concern | ( | v1::read_concern | read_concern | ) |
Set the "readConcern" field.
| bsoncxx::v1::stdx::optional< v1::read_preference > mongocxx::v1::aggregate_options::read_preference | ( | ) | const |
Return the current "readPreference" field.
| aggregate_options & mongocxx::v1::aggregate_options::read_preference | ( | v1::read_preference | rp | ) |
Set the "readPreference" field.
| bsoncxx::v1::stdx::optional< v1::write_concern > mongocxx::v1::aggregate_options::write_concern | ( | ) | const |
Return the current "writeConcern" field.
| aggregate_options & mongocxx::v1::aggregate_options::write_concern | ( | v1::write_concern | write_concern | ) |
Set the "writeConcern" field.