mongoc_client_encryption_encrypt_opts_set_contention_factor
mongoc_client_encryption_encrypt_opts_set_contention_factor()
Synopsis
void mongoc_client_encryption_encrypt_opts_set_contention_factor ( mongoc_client_encryption_encrypt_opts_t *opts, int64_t contention_factor);
- IMPORTANT:
This API is part of the experimental Queryable Encryption API and may be subject to breaking changes in future releases.
New in version 1.22.0.
Sets a contention factor for explicit encryption. Only applies when the algorithm set by mongoc_client_encryption_encrypt_opts_set_algorithm() is "Indexed". It is an error to set the contention factor when algorithm is not "Indexed". If contention factor is not supplied, it defaults to a value of 0.
Parameters
- opts: A mongoc_client_encryption_encrypt_opts_t
- contention_factor: A non-negative contention factor.
Author
MongoDB, Inc
Copyright
2017-present, MongoDB, Inc
Info
May 09, 2023 1.23.4 libmongoc