Module spring.data.mongodb
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
Nested ClassesModifier and TypeClassDescriptionstatic classAggregationExpressionfor$allElementsTrue.static classAggregationExpressionfor$anyElementTrue.static classAggregationExpressionfor$setDifference.static classAggregationExpressionfor$setEquals.static classAggregationExpressionfor$setIntersection.static classAggregationExpressionfor$setIsSubset.static classstatic classAggregationExpressionfor$setUnion. -
Constructor Summary
Constructors -
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.
-