21 #include <mongocxx/options/distinct-fwd.hpp>
23 #include <bsoncxx/document/view_or_value.hpp>
24 #include <bsoncxx/stdx/optional.hpp>
25 #include <bsoncxx/types/bson_value/view_or_value.hpp>
26 #include <mongocxx/read_preference.hpp>
28 #include <mongocxx/config/prelude.hpp>
61 const stdx::optional<bsoncxx::v_noabi::document::view_or_value>&
collation()
const;
84 const stdx::optional<std::chrono::milliseconds>&
max_time()
const;
107 const stdx::optional<bsoncxx::v_noabi::types::bson_value::view_or_value>&
comment()
const;
133 stdx::optional<bsoncxx::v_noabi::document::view_or_value> _collation;
134 stdx::optional<std::chrono::milliseconds> _max_time;
135 stdx::optional<bsoncxx::v_noabi::types::bson_value::view_or_value> _comment;
136 stdx::optional<mongocxx::v_noabi::read_preference> _read_preference;
143 #include <mongocxx/config/postlude.hpp>
Class representing the optional arguments to a MongoDB distinct command.
Definition: distinct.hpp:37
const stdx::optional< std::chrono::milliseconds > & max_time() const
The current max_time setting.
const stdx::optional< mongocxx::v_noabi::read_preference > & read_preference() const
The current read_preference for this operation.
distinct & collation(bsoncxx::v_noabi::document::view_or_value collation)
Sets the collation for this operation.
distinct & max_time(std::chrono::milliseconds max_time)
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
distinct & comment(bsoncxx::v_noabi::types::bson_value::view_or_value comment)
Sets the comment for this operation.
const stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > & comment() const
The current comment for this operation.
distinct & read_preference(mongocxx::v_noabi::read_preference rp)
Sets the read_preference for this operation.
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & collation() const
Retrieves the current collation for this operation.
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:63
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19