MongoDB C++ Driver mongocxx-4.0.0
|
#include <mongocxx/v_noabi/mongocxx/options/range.hpp>
RangeOpts
specifies index options for a Queryable Encryption field supporting "range" queries.
min
, max
, trimFactor
, sparsity
, and precision
must match the values set in the encryptedFields of the destination collection.min
, max
, and precision
must all be set, or all be unset. Public Member Functions | |
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > & | max () const |
Gets RangeOpts.max . | |
range & | max (bsoncxx::v_noabi::types::bson_value::view_or_value value) |
Sets RangeOpts.max . | |
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > & | min () const |
Gets RangeOpts.min . | |
range & | min (bsoncxx::v_noabi::types::bson_value::view_or_value value) |
Sets RangeOpts.min . | |
const bsoncxx::v_noabi::stdx::optional< std::int32_t > & | precision () const |
Gets RangeOpts.precision . | |
range & | precision (std::int32_t value) |
Sets RangeOpts.precision . | |
const bsoncxx::v_noabi::stdx::optional< std::int64_t > & | sparsity () const |
Gets RangeOpts.sparsity . | |
range & | sparsity (std::int64_t value) |
Sets RangeOpts.sparsity . | |
const bsoncxx::v_noabi::stdx::optional< std::int32_t > & | trim_factor () const |
Gets RangeOpts.trimFactor . | |
range & | trim_factor (std::int32_t value) |
Sets RangeOpts.trimFactor . | |
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > & mongocxx::v_noabi::options::range::max | ( | ) | const |
Gets RangeOpts.max
.
range & mongocxx::v_noabi::options::range::max | ( | bsoncxx::v_noabi::types::bson_value::view_or_value | value | ) |
Sets RangeOpts.max
.
const bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > & mongocxx::v_noabi::options::range::min | ( | ) | const |
Gets RangeOpts.min
.
range & mongocxx::v_noabi::options::range::min | ( | bsoncxx::v_noabi::types::bson_value::view_or_value | value | ) |
Sets RangeOpts.min
.
const bsoncxx::v_noabi::stdx::optional< std::int32_t > & mongocxx::v_noabi::options::range::precision | ( | ) | const |
Gets RangeOpts.precision
.
double
or decimal128
. range & mongocxx::v_noabi::options::range::precision | ( | std::int32_t | value | ) |
Sets RangeOpts.precision
.
double
or decimal128
. const bsoncxx::v_noabi::stdx::optional< std::int64_t > & mongocxx::v_noabi::options::range::sparsity | ( | ) | const |
Gets RangeOpts.sparsity
.
range & mongocxx::v_noabi::options::range::sparsity | ( | std::int64_t | value | ) |
Sets RangeOpts.sparsity
.
const bsoncxx::v_noabi::stdx::optional< std::int32_t > & mongocxx::v_noabi::options::range::trim_factor | ( | ) | const |
Gets RangeOpts.trimFactor
.
range & mongocxx::v_noabi::options::range::trim_factor | ( | std::int32_t | value | ) |
Sets RangeOpts.trimFactor
.