Package com.mongodb.client.model.vault
Class RangeOptions
java.lang.Object
com.mongodb.client.model.vault.RangeOptions
Range options specifies index options for a Queryable Encryption field supporting "rangePreview" queries.
min
, max
, sparsity
, and precision
must match the values set in the encryptedFields
of the destination collection.
For double
and decimal128
, min
/max
/precision
must all be set, or all be unset.
Note: The Range algorithm is experimental only. It is not intended for public use. It is subject to breaking changes.
- Since:
- 4.9
- MongoDB documentation
- queryable encryption
- Since server release
- 6.2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMax()
getMin()
Set the maximum value set in the encryptedFields of the destination collection.Set the minimum value set in the encryptedFields of the destination collection.Set the precision of double or decimal128 values in the encryptedFields of the destination collection.Set the Queryable Encryption range hypergraph sparsity factortoString()
-
Constructor Details
-
RangeOptions
public RangeOptions()Construct a new instance
-
-
Method Details
-
min
Set the minimum value set in the encryptedFields of the destination collection.- Parameters:
min
- the minimum value- Returns:
- this
-
getMin
- Returns:
- the minimum value if set
-
max
Set the maximum value set in the encryptedFields of the destination collection.- Parameters:
max
- the maximum value- Returns:
- this
-
getMax
- Returns:
- the maximum value if set
-
sparsity
Set the Queryable Encryption range hypergraph sparsity factor- Parameters:
sparsity
- the sparsity- Returns:
- this
-
getSparsity
- Returns:
- the sparsity value if set
-
precision
Set the precision of double or decimal128 values in the encryptedFields of the destination collection.- Parameters:
precision
- the precision- Returns:
- this
-
getPrecision
- Returns:
- the precision value if set
-
toString
-