#include <mongocxx/v1/indexes.hpp>
Options for mongocxx::v1::indexes::model.
Supported fields include:
Public Member Functions | |
| options () | |
| Default initialization. | |
| options (options &&other) noexcept | |
| Move constructor. | |
| options (options const &other) | |
| Copy construction. | |
| ~options () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< bool > | background () const |
| Return the current "background" field. | |
| options & | background (bool v) |
| Set the "background" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | collation () const |
| Return the current "collation" field. | |
| options & | collation (bsoncxx::v1::document::value v) |
| Set the "collation" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > | default_language () const |
| Return the current "default_language" field. | |
| options & | default_language (std::string v) |
| Set the "default_language" field. | |
| bsoncxx::v1::stdx::optional< std::chrono::seconds > | expire_after () const |
| Return the current "expireAfterSeconds" field. | |
| options & | expire_after (std::chrono::seconds v) |
| Set the "expireAfterSeconds" field. | |
| bsoncxx::v1::stdx::optional< bool > | hidden () const |
| Return the current "hidden" field. | |
| options & | hidden (bool v) |
| Set the "hidden" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > | language_override () const |
| Return the current "language_override" field. | |
| options & | language_override (std::string v) |
| Set the "language_override" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > | name () const |
| Return the current "name" field. | |
| options & | name (std::string v) |
| Set the "name" field. | |
| operator bsoncxx::v1::document::value () const | |
| Return these index management options as a document. | |
| options & | operator= (options &&other) noexcept |
| Move assignment. | |
| options & | operator= (options const &other) |
| Copy assignment. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | partial_filter_expression () const |
| Return the current "partialFilterExpression" field. | |
| options & | partial_filter_expression (bsoncxx::v1::document::value v) |
| Set the "partialFilterExpression" field. | |
| bsoncxx::v1::stdx::optional< bool > | sparse () const |
| Return the current "sparse" field. | |
| options & | sparse (bool v) |
| Set the "sparse" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | storage_engine () const |
| Return the current "storageEngine" field. | |
| options & | storage_engine (bsoncxx::v1::document::value v) |
| Set the "storageEngine" field. | |
| bsoncxx::v1::stdx::optional< std::int32_t > | text_index_version () const |
| Return the current "textIndexVersion" field. | |
| options & | text_index_version (std::int32_t v) |
| Set the "textIndexVersion" field. | |
| bsoncxx::v1::stdx::optional< std::uint8_t > | twod_bits_precision () const |
| Return the current "bits" field. | |
| options & | twod_bits_precision (std::uint8_t v) |
| Set the "bits" field. | |
| bsoncxx::v1::stdx::optional< double > | twod_location_max () const |
| Return the current "max" field. | |
| options & | twod_location_max (double v) |
| Set the "max" field. | |
| bsoncxx::v1::stdx::optional< double > | twod_location_min () const |
| Return the current "min" field. | |
| options & | twod_location_min (double v) |
| Set the "min" field. | |
| bsoncxx::v1::stdx::optional< std::uint8_t > | twod_sphere_version () const |
| Return the current "2dsphereIndexVersion" field. | |
| options & | twod_sphere_version (std::uint8_t v) |
| Set the "2dsphereIndexVersion" field. | |
| bsoncxx::v1::stdx::optional< bool > | unique () const |
| Return the current "unique" field. | |
| options & | unique (bool v) |
| Set the "unique" field. | |
| bsoncxx::v1::stdx::optional< std::int32_t > | version () const |
| Return the current "version" field. | |
| options & | version (std::int32_t v) |
| Set the "version" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | weights () const |
| Return the current "weights" field. | |
| options & | weights (bsoncxx::v1::document::value v) |
| Set the "weights" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | wildcard_projection () const |
| Return the current "wildcardProjection" field. | |
| options & | wildcard_projection (bsoncxx::v1::document::value v) |
| Set the "wildcardProjection" field. | |
| mongocxx::v1::indexes::options::~options | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::indexes::options::options | ( | options const & | other | ) |
Copy construction.
| mongocxx::v1::indexes::options::options | ( | ) |
Default initialization.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::indexes::options::background | ( | ) | const |
Return the current "background" field.
| options & mongocxx::v1::indexes::options::background | ( | bool | v | ) |
Set the "background" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::indexes::options::collation | ( | ) | const |
Return the current "collation" field.
| options & mongocxx::v1::indexes::options::collation | ( | bsoncxx::v1::document::value | v | ) |
Set the "collation" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > mongocxx::v1::indexes::options::default_language | ( | ) | const |
Return the current "default_language" field.
| options & mongocxx::v1::indexes::options::default_language | ( | std::string | v | ) |
Set the "default_language" field.
| bsoncxx::v1::stdx::optional< std::chrono::seconds > mongocxx::v1::indexes::options::expire_after | ( | ) | const |
Return the current "expireAfterSeconds" field.
| options & mongocxx::v1::indexes::options::expire_after | ( | std::chrono::seconds | v | ) |
Set the "expireAfterSeconds" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::indexes::options::hidden | ( | ) | const |
Return the current "hidden" field.
| options & mongocxx::v1::indexes::options::hidden | ( | bool | v | ) |
Set the "hidden" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > mongocxx::v1::indexes::options::language_override | ( | ) | const |
Return the current "language_override" field.
| options & mongocxx::v1::indexes::options::language_override | ( | std::string | v | ) |
Set the "language_override" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::stdx::string_view > mongocxx::v1::indexes::options::name | ( | ) | const |
Return the current "name" field.
| options & mongocxx::v1::indexes::options::name | ( | std::string | v | ) |
Set the "name" field.
| mongocxx::v1::indexes::options::operator bsoncxx::v1::document::value | ( | ) | const |
Return these index management options as a document.
Move assignment.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::indexes::options::partial_filter_expression | ( | ) | const |
Return the current "partialFilterExpression" field.
| options & mongocxx::v1::indexes::options::partial_filter_expression | ( | bsoncxx::v1::document::value | v | ) |
Set the "partialFilterExpression" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::indexes::options::sparse | ( | ) | const |
Return the current "sparse" field.
| options & mongocxx::v1::indexes::options::sparse | ( | bool | v | ) |
Set the "sparse" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::indexes::options::storage_engine | ( | ) | const |
Return the current "storageEngine" field.
| options & mongocxx::v1::indexes::options::storage_engine | ( | bsoncxx::v1::document::value | v | ) |
Set the "storageEngine" field.
| bsoncxx::v1::stdx::optional< std::int32_t > mongocxx::v1::indexes::options::text_index_version | ( | ) | const |
Return the current "textIndexVersion" field.
| options & mongocxx::v1::indexes::options::text_index_version | ( | std::int32_t | v | ) |
Set the "textIndexVersion" field.
| bsoncxx::v1::stdx::optional< std::uint8_t > mongocxx::v1::indexes::options::twod_bits_precision | ( | ) | const |
Return the current "bits" field.
| options & mongocxx::v1::indexes::options::twod_bits_precision | ( | std::uint8_t | v | ) |
Set the "bits" field.
| bsoncxx::v1::stdx::optional< double > mongocxx::v1::indexes::options::twod_location_max | ( | ) | const |
Return the current "max" field.
| options & mongocxx::v1::indexes::options::twod_location_max | ( | double | v | ) |
Set the "max" field.
| bsoncxx::v1::stdx::optional< double > mongocxx::v1::indexes::options::twod_location_min | ( | ) | const |
Return the current "min" field.
| options & mongocxx::v1::indexes::options::twod_location_min | ( | double | v | ) |
Set the "min" field.
| bsoncxx::v1::stdx::optional< std::uint8_t > mongocxx::v1::indexes::options::twod_sphere_version | ( | ) | const |
Return the current "2dsphereIndexVersion" field.
| options & mongocxx::v1::indexes::options::twod_sphere_version | ( | std::uint8_t | v | ) |
Set the "2dsphereIndexVersion" field.
| bsoncxx::v1::stdx::optional< bool > mongocxx::v1::indexes::options::unique | ( | ) | const |
Return the current "unique" field.
| options & mongocxx::v1::indexes::options::unique | ( | bool | v | ) |
Set the "unique" field.
| bsoncxx::v1::stdx::optional< std::int32_t > mongocxx::v1::indexes::options::version | ( | ) | const |
Return the current "version" field.
| options & mongocxx::v1::indexes::options::version | ( | std::int32_t | v | ) |
Set the "version" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::indexes::options::weights | ( | ) | const |
Return the current "weights" field.
| options & mongocxx::v1::indexes::options::weights | ( | bsoncxx::v1::document::value | v | ) |
Set the "weights" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::indexes::options::wildcard_projection | ( | ) | const |
Return the current "wildcardProjection" field.
| options & mongocxx::v1::indexes::options::wildcard_projection | ( | bsoncxx::v1::document::value | v | ) |
Set the "wildcardProjection" field.