MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
mongocxx::v1::aggregate_options Class Reference

#include <mongocxx/v1/aggregate_options.hpp>

Description

Options for an "aggregate" command.

Supported fields include:

See also
Attention
This feature is experimental! It is not ready for use!

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_optionsallow_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_optionsbatch_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_optionsbypass_document_validation (bool bypass_document_validation)
 Set the "bypassDocumentValidation" field.
bsoncxx::v1::stdx::optional< bsoncxx::v1::document::viewcollation () const
 Return the current "collation" field.
aggregate_optionscollation (bsoncxx::v1::document::value collation)
 Set the "collation" field.
bsoncxx::v1::stdx::optional< bsoncxx::v1::types::viewcomment () const
 Return the current "comment" field.
aggregate_optionscomment (bsoncxx::v1::types::value comment)
 Set the "comment" field.
bsoncxx::v1::stdx::optional< v1::hinthint () const
 Return the current "hint" field.
aggregate_optionshint (v1::hint index_hint)
 Set the "hint" field.
bsoncxx::v1::stdx::optional< bsoncxx::v1::document::viewlet () const
 Return the current "let" field.
aggregate_optionslet (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_optionsmax_time (std::chrono::milliseconds max_time)
 Set the "maxTimeMS" field.
aggregate_optionsoperator= (aggregate_options &&other) noexcept
 Move assignment.
aggregate_optionsoperator= (aggregate_options const &other)
 Copy assignment.
bsoncxx::v1::stdx::optional< v1::read_concernread_concern () const
 Return the current "readConcern" field.
aggregate_optionsread_concern (v1::read_concern read_concern)
 Set the "readConcern" field.
bsoncxx::v1::stdx::optional< v1::read_preferenceread_preference () const
 Return the current "readPreference" field.
aggregate_optionsread_preference (v1::read_preference rp)
 Set the "readPreference" field.
bsoncxx::v1::stdx::optional< v1::write_concernwrite_concern () const
 Return the current "writeConcern" field.
aggregate_optionswrite_concern (v1::write_concern write_concern)
 Set the "writeConcern" field.

Constructor & Destructor Documentation

◆ ~aggregate_options()

mongocxx::v1::aggregate_options::~aggregate_options ( )

Destroy this object.

Warning
Invalidates all associated views.

◆ aggregate_options() [1/3]

mongocxx::v1::aggregate_options::aggregate_options ( aggregate_options && other)
noexcept

Move constructor.

Postconditions:
  • other is in an assign-or-destroy-only state.

◆ aggregate_options() [2/3]

mongocxx::v1::aggregate_options::aggregate_options ( aggregate_options const & other)

Copy construction.

◆ aggregate_options() [3/3]

mongocxx::v1::aggregate_options::aggregate_options ( )

Default initialization.

Postconditions:
  • All supported fields are "unset" or zero-initialized.

Member Function Documentation

◆ allow_disk_use() [1/2]

bsoncxx::v1::stdx::optional< bool > mongocxx::v1::aggregate_options::allow_disk_use ( ) const

Return the current "allowDiskUse" field.

◆ allow_disk_use() [2/2]

aggregate_options & mongocxx::v1::aggregate_options::allow_disk_use ( bool allow_disk_use)

Set the "allowDiskUse" field.

◆ batch_size() [1/2]

bsoncxx::v1::stdx::optional< std::int32_t > mongocxx::v1::aggregate_options::batch_size ( ) const

Return the current "batchSize" field.

◆ batch_size() [2/2]

aggregate_options & mongocxx::v1::aggregate_options::batch_size ( std::int32_t batch_size)

Set the "batchSize" field.

◆ bypass_document_validation() [1/2]

bsoncxx::v1::stdx::optional< bool > mongocxx::v1::aggregate_options::bypass_document_validation ( ) const

Return the current "bypassDocumentValidation" field.

◆ bypass_document_validation() [2/2]

aggregate_options & mongocxx::v1::aggregate_options::bypass_document_validation ( bool bypass_document_validation)

Set the "bypassDocumentValidation" field.

◆ collation() [1/2]

bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::aggregate_options::collation ( ) const

Return the current "collation" field.

◆ collation() [2/2]

aggregate_options & mongocxx::v1::aggregate_options::collation ( bsoncxx::v1::document::value collation)

Set the "collation" field.

◆ comment() [1/2]

bsoncxx::v1::stdx::optional< bsoncxx::v1::types::view > mongocxx::v1::aggregate_options::comment ( ) const

Return the current "comment" field.

◆ comment() [2/2]

aggregate_options & mongocxx::v1::aggregate_options::comment ( bsoncxx::v1::types::value comment)

Set the "comment" field.

◆ hint() [1/2]

bsoncxx::v1::stdx::optional< v1::hint > mongocxx::v1::aggregate_options::hint ( ) const

Return the current "hint" field.

◆ hint() [2/2]

aggregate_options & mongocxx::v1::aggregate_options::hint ( v1::hint index_hint)

Set the "hint" field.

◆ let() [1/2]

bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::aggregate_options::let ( ) const

Return the current "let" field.

◆ let() [2/2]

aggregate_options & mongocxx::v1::aggregate_options::let ( bsoncxx::v1::document::value let)

Set the "let" field.

◆ max_time() [1/2]

bsoncxx::v1::stdx::optional< std::chrono::milliseconds > mongocxx::v1::aggregate_options::max_time ( ) const

Return the current "maxTimeMS" field.

◆ max_time() [2/2]

aggregate_options & mongocxx::v1::aggregate_options::max_time ( std::chrono::milliseconds max_time)

Set the "maxTimeMS" field.

◆ operator=() [1/2]

aggregate_options & mongocxx::v1::aggregate_options::operator= ( aggregate_options && other)
noexcept

Move assignment.

Postconditions:
  • other is in an assign-or-destroy-only state.

◆ operator=() [2/2]

aggregate_options & mongocxx::v1::aggregate_options::operator= ( aggregate_options const & other)

Copy assignment.

◆ read_concern() [1/2]

bsoncxx::v1::stdx::optional< v1::read_concern > mongocxx::v1::aggregate_options::read_concern ( ) const

Return the current "readConcern" field.

◆ read_concern() [2/2]

aggregate_options & mongocxx::v1::aggregate_options::read_concern ( v1::read_concern read_concern)

Set the "readConcern" field.

◆ read_preference() [1/2]

bsoncxx::v1::stdx::optional< v1::read_preference > mongocxx::v1::aggregate_options::read_preference ( ) const

Return the current "readPreference" field.

◆ read_preference() [2/2]

aggregate_options & mongocxx::v1::aggregate_options::read_preference ( v1::read_preference rp)

Set the "readPreference" field.

◆ write_concern() [1/2]

bsoncxx::v1::stdx::optional< v1::write_concern > mongocxx::v1::aggregate_options::write_concern ( ) const

Return the current "writeConcern" field.

◆ write_concern() [2/2]

aggregate_options & mongocxx::v1::aggregate_options::write_concern ( v1::write_concern write_concern)

Set the "writeConcern" field.


The documentation for this class was generated from the following file: