75 if (_allow_disk_use) {
95 if (_read_preference) {
99 if (_bypass_document_validation) {
107 if (_write_concern) {
150 return _allow_disk_use;
228 _let = std::move(
let);
289 _read_preference = std::move(rp);
302 return _read_preference;
328 return _bypass_document_validation;
348 _hint = std::move(index_hint);
393 return _write_concern;
423 return _read_concern;
483 return {std::move(v)};
Declares mongocxx::v_noabi::options::aggregate.
Provides mongocxx::v1::aggregate_options.
Provides bsoncxx::v_noabi::builder::basic::document.
A BSON document.
Definition value.hpp:46
A polyfill for std::optional<T>.
Definition optional.hpp:799
A union of BSON type values.
Definition value.hpp:54
aggregate()=default
Default initialization.
Options for an "aggregate" command.
Definition aggregate_options.hpp:64
aggregate_options & allow_disk_use(bool allow_disk_use)
Set the "allowDiskUse" field.
aggregate_options & write_concern(v1::write_concern write_concern)
Set the "writeConcern" field.
aggregate_options & max_time(std::chrono::milliseconds max_time)
Set the "maxTimeMS" field.
aggregate_options & hint(v1::hint index_hint)
Set the "hint" field.
aggregate_options & let(bsoncxx::v1::document::value let)
Set the "let" field.
aggregate_options & read_concern(v1::read_concern read_concern)
Set the "readConcern" field.
aggregate_options & read_preference(v1::read_preference rp)
Set the "readPreference" field.
aggregate_options & bypass_document_validation(bool bypass_document_validation)
Set the "bypassDocumentValidation" field.
aggregate_options & comment(bsoncxx::v1::types::value comment)
Set the "comment" field.
aggregate_options & batch_size(std::int32_t batch_size)
Set the "batchSize" field.
aggregate_options & collation(bsoncxx::v1::document::value collation)
Set the "collation" field.
The index to "hint" or force a MongoDB server to use when performing a query.
Definition hint.hpp:42
Used by MongoDB aggregation operations.
Definition aggregate.hpp:54
aggregate & let(bsoncxx::v_noabi::document::view_or_value let)
Sets the variable mapping for this operation.
Definition aggregate.hpp:227
aggregate & bypass_document_validation(bool bypass_document_validation)
Sets whether the $out stage should bypass document validation.
Definition aggregate.hpp:314
bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > const & max_time() const
The current max_time setting.
Definition aggregate.hpp:272
bsoncxx::v_noabi::stdx::optional< v_noabi::hint > const & hint() const
Gets the current hint.
Definition aggregate.hpp:360
bsoncxx::v_noabi::stdx::optional< bool > const & allow_disk_use() const
Retrieves the current allow_disk_use setting.
Definition aggregate.hpp:149
bsoncxx::v_noabi::stdx::optional< std::int32_t > const & batch_size() const
The current batch size setting.
Definition aggregate.hpp:179
bsoncxx::v_noabi::stdx::optional< v_noabi::read_concern > const & read_concern() const
Gets the current read concern.
Definition aggregate.hpp:422
aggregate & max_time(std::chrono::milliseconds max_time)
Sets the maximum amount of time for this operation to run server-side in milliseconds.
Definition aggregate.hpp:258
aggregate & batch_size(std::int32_t batch_size)
Sets the number of documents to return per batch.
Definition aggregate.hpp:166
aggregate()=default
Default initialization.
bsoncxx::v_noabi::stdx::optional< v_noabi::read_preference > const & read_preference() const
The current read_preference for this operation.
Definition aggregate.hpp:301
aggregate & read_preference(v_noabi::read_preference rp)
Sets the read_preference for this operation.
Definition aggregate.hpp:288
aggregate & comment(bsoncxx::v_noabi::types::bson_value::view_or_value comment)
Sets the comment to use for this operation.
Definition aggregate.hpp:438
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & let() const
Retrieves the current variable mapping for this operation.
Definition aggregate.hpp:241
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > const & comment() const
Gets the current comment.
Definition aggregate.hpp:452
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & collation() const
Retrieves the current collation for this operation.
Definition aggregate.hpp:210
aggregate & collation(bsoncxx::v_noabi::document::view_or_value collation)
Sets the collation for this operation.
Definition aggregate.hpp:196
operator v1::aggregate_options() const
Convert to the mongocxx::v1 equivalent.
Definition aggregate.hpp:69
bsoncxx::v_noabi::stdx::optional< v_noabi::write_concern > const & write_concern() const
Gets the current write concern.
Definition aggregate.hpp:392
aggregate & hint(v_noabi::hint index_hint)
Sets the index to use for this operation.
Definition aggregate.hpp:347
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 pipelin...
Definition aggregate.hpp:378
bsoncxx::v_noabi::stdx::optional< bool > const & bypass_document_validation() const
The current bypass_document_validation setting.
Definition aggregate.hpp:327
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 s...
Definition aggregate.hpp:136
aggregate & read_concern(v_noabi::read_concern read_concern)
Sets the read concern to use for this operation.
Definition aggregate.hpp:408
Controls the consistency and isolation properties of data read from replica sets and sharded clusters...
Definition read_concern.hpp:54
Describes how MongoDB clients route read operations to the members of a replica set or sharded cluste...
Definition read_preference.hpp:59
The level of acknowledgment requested for write operations to a MongoDB server.
Definition write_concern.hpp:54
Provides bsoncxx::v_noabi::document::view_or_value.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
v_noabi::view_or_value< v_noabi::document::view, v_noabi::document::value > view_or_value
Equivalent to v_noabi::view_or_value<v_noabi::document::view, v_noabi::document::value>.
Definition view_or_value.hpp:30
v_noabi::view_or_value< view, value > view_or_value
Equivalent to v_noabi::view_or_value<view, value>.
Definition view_or_value.hpp:31
v1::element::view to_v1(v_noabi::array::element const &v)
Convert to the bsoncxx::v1 equivalent of v.
Definition element.hpp:132
Declares entities whose ABI stability is guaranteed for documented symbols.
Declares entities representing options to use with various commands.
Declares entities whose ABI stability is NOT guaranteed.
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Provides bsoncxx::v_noabi::types::bson_value::view_or_value.
Provides bsoncxx::v1::document::value.
Provides bsoncxx::v1::types::value.
Provides bsoncxx::v_noabi::document::view.
Provides std::optional-related polyfills for library API usage.
Provides bsoncxx::v_noabi::types::bson_value::view.
Declares mongocxx::v_noabi::collection.
Declares mongocxx::v_noabi::database.
Provides mongocxx::v_noabi::hint.
Provides mongocxx::v_noabi::read_concern.
Provides mongocxx::v_noabi::read_preference.
Provides mongocxx::v_noabi::write_concern.