#include <mongocxx/v_noabi/mongocxx/options/count.hpp>
Class representing the optional arguments to mongocxx::v_noabi::collection::count_documents.
◆ collation() [1/2]
Retrieves the current collation for this operation.
- Returns
- The current collation.
- See also
-
◆ collation() [2/2]
Sets the collation for this operation.
- Parameters
-
collation | The new collation. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
- See also
-
◆ comment() [1/2]
Gets the current value of the comment option.
- Returns
- The current comment option.
- See also
-
◆ comment() [2/2]
Set the value of the comment option.
- Parameters
-
comment | The new comment option. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
- See also
-
◆ hint() [1/2]
Gets the current hint.
- Returns
- The current hint, if one is set.
- See also
-
◆ hint() [2/2]
Sets the index to use for this operation.
- Parameters
-
index_hint | Object representing the index to use. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
- See also
-
◆ limit() [1/2]
const stdx::optional< std::int64_t > & mongocxx::v_noabi::options::count::limit |
( |
| ) |
const |
Gets the current limit.
- Returns
- The current limit.
- See also
-
◆ limit() [2/2]
count & mongocxx::v_noabi::options::count::limit |
( |
std::int64_t | limit | ) |
|
Sets the maximum number of documents to count.
- Parameters
-
limit | The max number of documents to count. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
- See also
-
◆ max_time() [1/2]
const stdx::optional< std::chrono::milliseconds > & mongocxx::v_noabi::options::count::max_time |
( |
| ) |
const |
The current max_time setting.
- Returns
- The current max time (in milliseconds).
- See also
-
◆ max_time() [2/2]
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.
- Parameters
-
max_time | The max amount of time (in milliseconds). |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
- See also
-
◆ read_preference() [1/2]
◆ read_preference() [2/2]
Sets the read_preference for this operation.
- Parameters
-
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
- See also
-
◆ skip() [1/2]
const stdx::optional< std::int64_t > & mongocxx::v_noabi::options::count::skip |
( |
| ) |
const |
Gets the current number of documents to skip.
- Returns
- The number of documents to skip.
- See also
-
◆ skip() [2/2]
count & mongocxx::v_noabi::options::count::skip |
( |
std::int64_t | skip | ) |
|
Sets the number of documents to skip before counting documents.
- Parameters
-
skip | The number of documents to skip. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
- See also
-
The documentation for this class was generated from the following file: