Class QueryCharacteristics
java.lang.Object
org.springframework.data.mongodb.core.schema.QueryCharacteristics
- All Implemented Interfaces:
Iterable<QueryCharacteristic>,Supplier<Stream<QueryCharacteristic>>,Streamable<QueryCharacteristic>
Encapsulation of individual
query characteristics used to define queries that can be
executed when using queryable encryption.- Since:
- 4.5
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classQueryCharacteristicfor equality comparison.static classQueryCharacteristicfor range comparison. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> QueryCharacteristics.EqualityQuery<T>equality()Create a newequality query characteristicused to define equality queries against an encrypted field.iterator()static QueryCharacteristicsnone()static QueryCharacteristicsof(List<QueryCharacteristic> characteristics) Create newQueryCharacteristicsfrom given list ofcharacteristics.static QueryCharacteristicsof(QueryCharacteristic... characteristics) Create newQueryCharacteristicsfrom givencharacteristics.static <T> QueryCharacteristics.RangeQuery<T>range()Create a newrange query characteristicused to define range queries against an encrypted field.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
none
- Returns:
- marker instance indicating no characteristics have been defined.
-
of
Create newQueryCharacteristicsfrom given list ofcharacteristics.- Parameters:
characteristics- must not be null.- Returns:
- new instance of
QueryCharacteristics.
-
of
Create newQueryCharacteristicsfrom givencharacteristics.- Parameters:
characteristics- must not be null.- Returns:
- new instance of
QueryCharacteristics.
-
getCharacteristics
- Returns:
- the list of
characteristics.
-
iterator
- Specified by:
iteratorin interfaceIterable<QueryCharacteristic>
-
range
Create a newrange query characteristicused to define range queries against an encrypted field.- Type Parameters:
T- targeted field type- Returns:
- new instance of
QueryCharacteristics.RangeQuery.
-
equality
Create a newequality query characteristicused to define equality queries against an encrypted field.- Type Parameters:
T- targeted field type- Returns:
- new instance of
QueryCharacteristics.EqualityQuery.
-