MongoDB C++ Driver
mongocxx-3.10.2
|
Class representing the optional arguments to mongocxx::v_noabi::collection::count_documents. More...
#include <count.hpp>
Public Member Functions | |
count & | collation (bsoncxx::v_noabi::document::view_or_value collation) |
Sets the collation for this operation. More... | |
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & | collation () const |
Retrieves the current collation for this operation. More... | |
count & | hint (mongocxx::v_noabi::hint index_hint) |
Sets the index to use for this operation. More... | |
const stdx::optional< mongocxx::v_noabi::hint > & | hint () const |
Gets the current hint. More... | |
count & | comment (bsoncxx::v_noabi::types::bson_value::view_or_value comment) |
Set the value of the comment option. More... | |
const stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > & | comment () const |
Gets the current value of the comment option. More... | |
count & | limit (std::int64_t limit) |
Sets the maximum number of documents to count. More... | |
const stdx::optional< std::int64_t > & | limit () const |
Gets the current limit. More... | |
count & | max_time (std::chrono::milliseconds max_time) |
Sets the maximum amount of time for this operation to run (server-side) in milliseconds. More... | |
const stdx::optional< std::chrono::milliseconds > & | max_time () const |
The current max_time setting. More... | |
count & | skip (std::int64_t skip) |
Sets the number of documents to skip before counting documents. More... | |
const stdx::optional< std::int64_t > & | skip () const |
Gets the current number of documents to skip. More... | |
count & | read_preference (mongocxx::v_noabi::read_preference rp) |
Sets the read_preference for this operation. More... | |
const stdx::optional< mongocxx::v_noabi::read_preference > & | read_preference () const |
The current read_preference for this operation. More... | |
Class representing the optional arguments to mongocxx::v_noabi::collection::count_documents.
const stdx::optional<bsoncxx::v_noabi::document::view_or_value>& mongocxx::v_noabi::options::count::collation | ( | ) | const |
Retrieves the current collation for this operation.
count& mongocxx::v_noabi::options::count::collation | ( | bsoncxx::v_noabi::document::view_or_value | collation | ) |
Sets the collation for this operation.
collation | The new collation. |
const stdx::optional<bsoncxx::v_noabi::types::bson_value::view_or_value>& mongocxx::v_noabi::options::count::comment | ( | ) | const |
Gets the current value of the comment option.
count& mongocxx::v_noabi::options::count::comment | ( | bsoncxx::v_noabi::types::bson_value::view_or_value | comment | ) |
Set the value of the comment option.
comment | The new comment option. |
const stdx::optional<mongocxx::v_noabi::hint>& mongocxx::v_noabi::options::count::hint | ( | ) | const |
Gets the current hint.
count& mongocxx::v_noabi::options::count::hint | ( | mongocxx::v_noabi::hint | index_hint | ) |
Sets the index to use for this operation.
index_hint | Object representing the index to use. |
const stdx::optional<std::int64_t>& mongocxx::v_noabi::options::count::limit | ( | ) | const |
Gets the current limit.
count& mongocxx::v_noabi::options::count::limit | ( | std::int64_t | limit | ) |
Sets the maximum number of documents to count.
limit | The max number of documents to count. |
const stdx::optional<std::chrono::milliseconds>& mongocxx::v_noabi::options::count::max_time | ( | ) | const |
The current max_time setting.
count& mongocxx::v_noabi::options::count::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 stdx::optional<mongocxx::v_noabi::read_preference>& mongocxx::v_noabi::options::count::read_preference | ( | ) | const |
The current read_preference for this operation.
count& mongocxx::v_noabi::options::count::read_preference | ( | mongocxx::v_noabi::read_preference | rp | ) |
Sets the read_preference for this operation.
rp | The new read_preference. |
const stdx::optional<std::int64_t>& mongocxx::v_noabi::options::count::skip | ( | ) | const |
Gets the current number of documents to skip.
count& mongocxx::v_noabi::options::count::skip | ( | std::int64_t | skip | ) |
Sets the number of documents to skip before counting documents.
skip | The number of documents to skip. |