#include <mongocxx/v_noabi/mongocxx/options/count.hpp>
Public Member Functions | |
| count ()=default | |
| Default initialization. | |
| count (v1::count_options opts) | |
| Construct with the mongocxx::v1 equivalent. | |
| bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & | collation () const |
| Retrieves the current collation for this operation. | |
| count & | 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 value of the comment option. | |
| count & | comment (bsoncxx::v_noabi::types::bson_value::view_or_value comment) |
| Set the value of the comment option. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::hint > const & | hint () const |
| Gets the current hint. | |
| count & | hint (v_noabi::hint index_hint) |
| Sets the index to use for this operation. | |
| bsoncxx::v_noabi::stdx::optional< std::int64_t > const & | limit () const |
| Gets the current limit. | |
| count & | limit (std::int64_t limit) |
| Sets the maximum number of documents to count. | |
| bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > const & | max_time () const |
| The current max_time setting. | |
| count & | max_time (std::chrono::milliseconds max_time) |
| Sets the maximum amount of time for this operation to run (server-side) in milliseconds. | |
| operator v1::count_options () const | |
| Convert to the mongocxx::v1 equivalent. | |
| bsoncxx::v_noabi::stdx::optional< v_noabi::read_preference > const & | read_preference () const |
| The current read_preference for this operation. | |
| count & | read_preference (v_noabi::read_preference rp) |
| Sets the read_preference for this operation. | |
| bsoncxx::v_noabi::stdx::optional< std::int64_t > const & | skip () const |
| Gets the current number of documents to skip. | |
| count & | skip (std::int64_t skip) |
| Sets the number of documents to skip before counting documents. | |
|
default |
Default initialization.
Construct with the mongocxx::v1 equivalent.
|
inline |
Retrieves the current collation for this operation.
|
inline |
Sets the collation for this operation.
| collation | The new collation. |
|
inline |
Gets the current value of the comment option.
|
inline |
Set the value of the comment option.
| comment | The new comment option. |
|
inline |
Gets the current hint.
|
inline |
Sets the index to use for this operation.
| index_hint | Object representing the index to use. |
|
inline |
Gets the current limit.
|
inline |
Sets the maximum number of documents to count.
| limit | The max number of documents to count. |
|
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 |
The current read_preference for this operation.
Sets the read_preference for this operation.
| rp | The new read_preference. |
|
inline |
Gets the current number of documents to skip.
|
inline |
Sets the number of documents to skip before counting documents.
| skip | The number of documents to skip. |