Class SetOperators
java.lang.Object
org.springframework.data.mongodb.core.aggregation.SetOperators
Gateway to Set expressions which perform set operation on arrays, treating arrays as sets.
- Since:
- 1.10
- Author:
- Christoph Strobl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AggregationExpression
for$allElementsTrue
.static class
AggregationExpression
for$anyElementTrue
.static class
AggregationExpression
for$setDifference
.static class
AggregationExpression
for$setEquals
.static class
AggregationExpression
for$setIntersection
.static class
AggregationExpression
for$setIsSubset
.static class
static class
AggregationExpression
for$setUnion
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionarrayAsSet
(String fieldReference) Take the array referenced by given fieldReference.arrayAsSet
(AggregationExpression expression) Take the array resulting from the givenAggregationExpression
.
-
Constructor Details
-
SetOperators
public SetOperators()
-
-
Method Details
-
arrayAsSet
Take the array referenced by given fieldReference.- Parameters:
fieldReference
- must not be null.- Returns:
- new instance of
SetOperators.SetOperatorFactory
.
-
arrayAsSet
Take the array resulting from the givenAggregationExpression
.- Parameters:
expression
- must not be null.- Returns:
- new instance of
SetOperators.SetOperatorFactory
.
-