#include <mongocxx/v_noabi/mongocxx/options/aggregate.hpp>
Used by MongoDB aggregation operations.
Public Member Functions | |
| aggregate ()=default | |
| Default initialization. | |
| aggregate (v1::aggregate_options opts) | |
| Construct with the mongocxx::v1 equivalent. | |
| bsoncxx::v_noabi::stdx::optional< bool > const & | 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. | |
| bsoncxx::v_noabi::stdx::optional< std::int32_t > const & | 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. | |
| bsoncxx::v_noabi::stdx::optional< bool > const & | 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. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & | 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. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > const & | 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. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::hint > const & | hint () const |
| Gets the current hint. | |
| aggregate & | hint (v_noabi::hint index_hint) |
| Sets the index to use for this operation. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & | 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. | |
| bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > const & | 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. | |
| operator v1::aggregate_options () const | |
| Convert to the mongocxx::v1 equivalent. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::read_concern > const & | read_concern () const |
| Gets the current read concern. | |
| aggregate & | read_concern (v_noabi::read_concern read_concern) |
| Sets the read concern to use for this operation. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::read_preference > const & | read_preference () const |
| The current read_preference for this operation. | |
| aggregate & | read_preference (v_noabi::read_preference rp) |
| Sets the read_preference for this operation. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::write_concern > const & | write_concern () const |
| Gets the current write concern. | |
| aggregate & | write_concern (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. | |
|
default |
Default initialization.
| mongocxx::v_noabi::options::aggregate::aggregate | ( | v1::aggregate_options | opts | ) |
Construct with the mongocxx::v1 equivalent.
|
inline |
Retrieves the current allow_disk_use setting.
|
inline |
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. |
|
inline |
The current batch size setting.
|
inline |
Sets the number of documents to return per batch.
| batch_size | The size of the batches to request. |
|
inline |
The current bypass_document_validation setting.
|
inline |
Sets whether the $out stage should bypass document validation.
| bypass_document_validation | whether or not to bypass validation. |
|
inline |
Retrieves the current collation for this operation.
|
inline |
Sets the collation for this operation.
| collation | The new collation. |
|
inline |
Gets the current comment.
|
inline |
Sets the comment to use for this operation.
| comment | Object representing the comment. |
|
inline |
Gets the current hint.
|
inline |
Sets the index to use for this operation.
| index_hint | Object representing the index to use. |
|
inline |
Retrieves the current variable mapping for this operation.
|
inline |
Sets the variable mapping for this operation.
| let | The new variable mapping. |
|
inline |
The current max_time setting.
|
inline |
Sets the maximum amount of time for this operation to run server-side in milliseconds.
| max_time | The max amount of time (in milliseconds). |
|
inlineexplicit |
Convert to the mongocxx::v1 equivalent.
|
inline |
Gets the current read concern.
|
inline |
Sets the read concern to use for this operation.
| read_concern | Object representing the read_concern. |
|
inline |
The current read_preference for this operation.
|
inline |
Sets the read_preference for this operation.
| rp | the new read_preference |
|
inline |
Gets the current write concern.
|
inline |
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. |