MongoDB C++ Driver mongocxx-4.0.0
|
#include <mongocxx/v_noabi/mongocxx/options/aggregate.hpp>
Class representing the optional arguments to a MongoDB aggregation operation.
Public Member Functions | |
const bsoncxx::v_noabi::stdx::optional< bool > & | allow_disk_use () const |
Retrieves the current allow_disk_use setting. | |
aggregate & | allow_disk_use (bool allow_disk_use) |
Enables writing to temporary files. When set to true , aggregation stages can write data to the _tmp subdirectory in the dbPath directory. The server-side default is false . | |
const bsoncxx::v_noabi::stdx::optional< std::int32_t > & | batch_size () const |
The current batch size setting. | |
aggregate & | batch_size (std::int32_t batch_size) |
Sets the number of documents to return per batch. | |
const bsoncxx::v_noabi::stdx::optional< bool > & | bypass_document_validation () const |
The current bypass_document_validation setting. | |
aggregate & | bypass_document_validation (bool bypass_document_validation) |
Sets whether the $out stage should bypass document validation. | |
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > & | collation () const |
Retrieves the current collation for this operation. | |
aggregate & | 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 |
Gets the current comment. | |
aggregate & | comment (bsoncxx::v_noabi::types::bson_value::view_or_value comment) |
Sets the comment to use for this operation. | |
const bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::hint > & | hint () const |
Gets the current hint. | |
aggregate & | hint (mongocxx::v_noabi::hint index_hint) |
Sets the index to use for this operation. | |
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > & | let () const |
Retrieves the current variable mapping for this operation. | |
aggregate & | let (bsoncxx::v_noabi::document::view_or_value let) |
Sets the variable mapping for this operation. | |
const bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > & | max_time () const |
The current max_time setting. | |
aggregate & | 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_concern > & | read_concern () const |
Gets the current read concern. | |
aggregate & | read_concern (mongocxx::v_noabi::read_concern read_concern) |
Sets the read concern to use for this operation. | |
const bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::read_preference > & | read_preference () const |
The current read_preference for this operation. | |
aggregate & | read_preference (mongocxx::v_noabi::read_preference rp) |
Sets the read_preference for this operation. | |
const bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::write_concern > & | write_concern () const |
Gets the current write concern. | |
aggregate & | write_concern (mongocxx::v_noabi::write_concern write_concern) |
Sets the write concern to use for this operation. Only has an effect if $out is a part of the pipeline. | |
const bsoncxx::v_noabi::stdx::optional< bool > & mongocxx::v_noabi::options::aggregate::allow_disk_use | ( | ) | const |
Retrieves the current allow_disk_use setting.
aggregate & mongocxx::v_noabi::options::aggregate::allow_disk_use | ( | bool | allow_disk_use | ) |
Enables writing to temporary files. When set to true
, aggregation stages can write data to the _tmp subdirectory in the dbPath directory. The server-side default is false
.
allow_disk_use | Whether or not to allow disk use. |
const bsoncxx::v_noabi::stdx::optional< std::int32_t > & mongocxx::v_noabi::options::aggregate::batch_size | ( | ) | const |
The current batch size setting.
aggregate & mongocxx::v_noabi::options::aggregate::batch_size | ( | std::int32_t | batch_size | ) |
Sets the number of documents to return per batch.
batch_size | The size of the batches to request. |
const bsoncxx::v_noabi::stdx::optional< bool > & mongocxx::v_noabi::options::aggregate::bypass_document_validation | ( | ) | const |
The current bypass_document_validation setting.
aggregate & mongocxx::v_noabi::options::aggregate::bypass_document_validation | ( | bool | bypass_document_validation | ) |
Sets whether the $out stage should bypass document validation.
bypass_document_validation | whether or not to bypass validation. |
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > & mongocxx::v_noabi::options::aggregate::collation | ( | ) | const |
Retrieves the current collation for this operation.
aggregate & mongocxx::v_noabi::options::aggregate::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::aggregate::comment | ( | ) | const |
Gets the current comment.
aggregate & mongocxx::v_noabi::options::aggregate::comment | ( | bsoncxx::v_noabi::types::bson_value::view_or_value | comment | ) |
Sets the comment to use for this operation.
comment | Object representing the comment. |
const bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::hint > & mongocxx::v_noabi::options::aggregate::hint | ( | ) | const |
Gets the current hint.
aggregate & mongocxx::v_noabi::options::aggregate::hint | ( | mongocxx::v_noabi::hint | index_hint | ) |
Sets the index to use for this operation.
index_hint | Object representing the index to use. |
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > & mongocxx::v_noabi::options::aggregate::let | ( | ) | const |
Retrieves the current variable mapping for this operation.
aggregate & mongocxx::v_noabi::options::aggregate::let | ( | bsoncxx::v_noabi::document::view_or_value | let | ) |
Sets the variable mapping for this operation.
let | The new variable mapping. |
const bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > & mongocxx::v_noabi::options::aggregate::max_time | ( | ) | const |
The current max_time setting.
aggregate & mongocxx::v_noabi::options::aggregate::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_concern > & mongocxx::v_noabi::options::aggregate::read_concern | ( | ) | const |
Gets the current read concern.
aggregate & mongocxx::v_noabi::options::aggregate::read_concern | ( | mongocxx::v_noabi::read_concern | read_concern | ) |
Sets the read concern to use for this operation.
read_concern | Object representing the read_concern. |
const bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::read_preference > & mongocxx::v_noabi::options::aggregate::read_preference | ( | ) | const |
The current read_preference for this operation.
aggregate & mongocxx::v_noabi::options::aggregate::read_preference | ( | mongocxx::v_noabi::read_preference | rp | ) |
Sets the read_preference for this operation.
rp | the new read_preference |
const bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::write_concern > & mongocxx::v_noabi::options::aggregate::write_concern | ( | ) | const |
Gets the current write concern.
aggregate & mongocxx::v_noabi::options::aggregate::write_concern | ( | mongocxx::v_noabi::write_concern | write_concern | ) |
Sets the write concern to use for this operation. Only has an effect if $out is a part of the pipeline.
write_concern | Object representing the write_concern. |