| 
    MongoDB C++ Driver
    mongocxx-3.6.2
    
   | 
 
Class representing the optional arguments to a MongoDB distinct command. More...
#include <distinct.hpp>
Public Member Functions | |
| distinct & | collation (bsoncxx::document::view_or_value collation) | 
| Sets the collation for this operation.  More... | |
| const stdx::optional< bsoncxx::document::view_or_value > & | collation () const | 
| Retrieves the current collation for this operation.  More... | |
| distinct & | 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... | |
| distinct & | read_preference (class read_preference rp) | 
| Sets the read_preference for this operation.  More... | |
| const stdx::optional< class read_preference > & | read_preference () const | 
| The current read_preference for this operation.  More... | |
Class representing the optional arguments to a MongoDB distinct command.
| const stdx::optional<bsoncxx::document::view_or_value>& mongocxx::options::distinct::collation | ( | ) | const | 
Retrieves the current collation for this operation.
| distinct& mongocxx::options::distinct::collation | ( | bsoncxx::document::view_or_value | collation | ) | 
Sets the collation for this operation.
| collation | The new collation. | 
| const stdx::optional<std::chrono::milliseconds>& mongocxx::options::distinct::max_time | ( | ) | const | 
The current max_time setting.
| distinct& mongocxx::options::distinct::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<class read_preference>& mongocxx::options::distinct::read_preference | ( | ) | const | 
The current read_preference for this operation.
| distinct& mongocxx::options::distinct::read_preference | ( | class read_preference | rp | ) | 
Sets the read_preference for this operation.
| rp | The new read_preference. | 
 1.8.18