#include <mongocxx/v1/find_options.hpp>
Options for a "find" command.
Supported fields include:
Public Member Functions | |
| find_options () | |
| Default initialization. | |
| find_options (find_options &&other) noexcept | |
| Move constructor. | |
| find_options (find_options const &other) | |
| Copy construction. | |
| ~find_options () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< bool > | allow_disk_use () const |
| Return the current "allowDiskUse" field. | |
| find_options & | allow_disk_use (bool allow_disk_use) |
| Set the "allowDiskUse" field. | |
| bsoncxx::v1::stdx::optional< bool > | allow_partial_results () const |
| Return the current "allowPartialResults" field. | |
| find_options & | allow_partial_results (bool allow_partial) |
| Set the "allowPartialResults" field. | |
| bsoncxx::v1::stdx::optional< std::int32_t > | batch_size () const |
| Return the current "batchSize" field. | |
| find_options & | batch_size (std::int32_t batch_size) |
| Set the "batchSize" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | collation () const |
| Return the current "collation" field. | |
| find_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. | |
| find_options & | comment (bsoncxx::v1::types::value comment) |
| Set the "comment" field. | |
| bsoncxx::v1::stdx::optional< cursor::type > | cursor_type () const |
| Return the current "cursorType" field. | |
| find_options & | cursor_type (v1::cursor::type cursor_type) |
| Set the "cursorType" field. | |
| bsoncxx::v1::stdx::optional< v1::hint > | hint () const |
| Return the current "hint" field. | |
| find_options & | hint (v1::hint index_hint) |
| Set the "hint" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > const | let () const |
| Return the current "let" field. | |
| find_options & | let (bsoncxx::v1::document::value let) |
| Set the "let" field. | |
| bsoncxx::v1::stdx::optional< std::int64_t > | limit () const |
| Return the current "limit" field. | |
| find_options & | limit (std::int64_t limit) |
| Set the "limit" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | max () const |
| Return the current "max" field. | |
| find_options & | max (bsoncxx::v1::document::value max) |
| Set the "max" field. | |
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > | max_await_time () const |
| Return the current "maxAwaitTimeMS" field. | |
| find_options & | max_await_time (std::chrono::milliseconds max_await_time) |
| Set the "maxAwaitTimeMS" field. | |
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > | max_time () const |
| Return the current "maxTimeMS" field. | |
| find_options & | max_time (std::chrono::milliseconds max_time) |
| Set the "maxTimeMS" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | min () const |
| Return the current "min" field. | |
| find_options & | min (bsoncxx::v1::document::value min) |
| Set the "min" field. | |
| bsoncxx::v1::stdx::optional< bool > | no_cursor_timeout () const |
| Return the current "noCursorTimeout" field. | |
| find_options & | no_cursor_timeout (bool no_cursor_timeout) |
| Set the "noCursorTimeout" field. | |
| find_options & | operator= (find_options &&other) noexcept |
| Move assignment. | |
| find_options & | operator= (find_options const &other) |
| Copy assignment. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | projection () const |
| Return the current "projection" field. | |
| find_options & | projection (bsoncxx::v1::document::value projection) |
| Set the "projection" field. | |
| bsoncxx::v1::stdx::optional< v1::read_preference > | read_preference () const |
| Return the current "readPreference" field. | |
| find_options & | read_preference (v1::read_preference rp) |
| Set the "readPreference" field. | |
| bsoncxx::v1::stdx::optional< bool > | return_key () const |
| Return the current "returnKey" field. | |
| find_options & | return_key (bool return_key) |
| Set the "returnKey" field. | |
| bsoncxx::v1::stdx::optional< bool > | show_record_id () const |
| Return the current "showRecordId" field. | |
| find_options & | show_record_id (bool show_record_id) |
| Set the "showRecordId" field. | |
| bsoncxx::v1::stdx::optional< std::int64_t > | skip () const |
| Return the current "skip" field. | |
| find_options & | skip (std::int64_t skip) |
| Set the "skip" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | sort () const |
| Return the current "sort" field. | |
| find_options & | sort (bsoncxx::v1::document::value ordering) |
| Set the "sort" field. | |
| mongocxx::v1::find_options::~find_options | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::find_options::find_options | ( | find_options const & | other | ) |
Copy construction.
| mongocxx::v1::find_options::find_options | ( | ) |
Default initialization.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::find_options::allow_disk_use | ( | ) | const |
Return the current "allowDiskUse" field.
| find_options & mongocxx::v1::find_options::allow_disk_use | ( | bool | allow_disk_use | ) |
Set the "allowDiskUse" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::find_options::allow_partial_results | ( | ) | const |
Return the current "allowPartialResults" field.
| find_options & mongocxx::v1::find_options::allow_partial_results | ( | bool | allow_partial | ) |
Set the "allowPartialResults" field.
| bsoncxx::v1::stdx::optional< std::int32_t > mongocxx::v1::find_options::batch_size | ( | ) | const |
Return the current "batchSize" field.
| find_options & mongocxx::v1::find_options::batch_size | ( | std::int32_t | batch_size | ) |
Set the "batchSize" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::find_options::collation | ( | ) | const |
Return the current "collation" field.
| find_options & mongocxx::v1::find_options::collation | ( | bsoncxx::v1::document::value | collation | ) |
Set the "collation" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::types::view > mongocxx::v1::find_options::comment | ( | ) | const |
Return the current "comment" field.
| find_options & mongocxx::v1::find_options::comment | ( | bsoncxx::v1::types::value | comment | ) |
Set the "comment" field.
| bsoncxx::v1::stdx::optional< cursor::type > mongocxx::v1::find_options::cursor_type | ( | ) | const |
Return the current "cursorType" field.
| find_options & mongocxx::v1::find_options::cursor_type | ( | v1::cursor::type | cursor_type | ) |
Set the "cursorType" field.
| bsoncxx::v1::stdx::optional< v1::hint > mongocxx::v1::find_options::hint | ( | ) | const |
Return the current "hint" field.
| find_options & mongocxx::v1::find_options::hint | ( | v1::hint | index_hint | ) |
Set the "hint" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > const mongocxx::v1::find_options::let | ( | ) | const |
Return the current "let" field.
| find_options & mongocxx::v1::find_options::let | ( | bsoncxx::v1::document::value | let | ) |
Set the "let" field.
| bsoncxx::v1::stdx::optional< std::int64_t > mongocxx::v1::find_options::limit | ( | ) | const |
Return the current "limit" field.
| find_options & mongocxx::v1::find_options::limit | ( | std::int64_t | limit | ) |
Set the "limit" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::find_options::max | ( | ) | const |
Return the current "max" field.
| find_options & mongocxx::v1::find_options::max | ( | bsoncxx::v1::document::value | max | ) |
Set the "max" field.
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > mongocxx::v1::find_options::max_await_time | ( | ) | const |
Return the current "maxAwaitTimeMS" field.
| find_options & mongocxx::v1::find_options::max_await_time | ( | std::chrono::milliseconds | max_await_time | ) |
Set the "maxAwaitTimeMS" field.
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > mongocxx::v1::find_options::max_time | ( | ) | const |
Return the current "maxTimeMS" field.
| find_options & mongocxx::v1::find_options::max_time | ( | std::chrono::milliseconds | max_time | ) |
Set the "maxTimeMS" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::find_options::min | ( | ) | const |
Return the current "min" field.
| find_options & mongocxx::v1::find_options::min | ( | bsoncxx::v1::document::value | min | ) |
Set the "min" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::find_options::no_cursor_timeout | ( | ) | const |
Return the current "noCursorTimeout" field.
| find_options & mongocxx::v1::find_options::no_cursor_timeout | ( | bool | no_cursor_timeout | ) |
Set the "noCursorTimeout" field.
|
noexcept |
Move assignment.
| find_options & mongocxx::v1::find_options::operator= | ( | find_options const & | other | ) |
Copy assignment.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::find_options::projection | ( | ) | const |
Return the current "projection" field.
| find_options & mongocxx::v1::find_options::projection | ( | bsoncxx::v1::document::value | projection | ) |
Set the "projection" field.
| bsoncxx::v1::stdx::optional< v1::read_preference > mongocxx::v1::find_options::read_preference | ( | ) | const |
Return the current "readPreference" field.
| find_options & mongocxx::v1::find_options::read_preference | ( | v1::read_preference | rp | ) |
Set the "readPreference" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::find_options::return_key | ( | ) | const |
Return the current "returnKey" field.
| find_options & mongocxx::v1::find_options::return_key | ( | bool | return_key | ) |
Set the "returnKey" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::find_options::show_record_id | ( | ) | const |
Return the current "showRecordId" field.
| find_options & mongocxx::v1::find_options::show_record_id | ( | bool | show_record_id | ) |
Set the "showRecordId" field.
| bsoncxx::v1::stdx::optional< std::int64_t > mongocxx::v1::find_options::skip | ( | ) | const |
Return the current "skip" field.
| find_options & mongocxx::v1::find_options::skip | ( | std::int64_t | skip | ) |
Set the "skip" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::find_options::sort | ( | ) | const |
Return the current "sort" field.
| find_options & mongocxx::v1::find_options::sort | ( | bsoncxx::v1::document::value | ordering | ) |
Set the "sort" field.