Class VariableOperators.Map
java.lang.Object
org.springframework.data.mongodb.core.aggregation.VariableOperators.Map
- All Implemented Interfaces:
AggregationExpression, MongoExpression
- Enclosing class:
VariableOperators
AggregationExpression for $map.- Since:
- 1.10
- Author:
- Christoph Strobl, Mark Paluch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionStarts building newVariableOperators.Mapthat applies anAggregationExpressionto each item of a referenced array and returns an array with the applied results.itemsOf(AggregationExpression source) Starts building newVariableOperators.Mapthat applies anAggregationExpressionto each item of a referenced array and returns an array with the applied results.toDocument(AggregationOperationContext context) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AggregationExpression
toDocument
-
Method Details
-
itemsOf
Starts building newVariableOperators.Mapthat applies anAggregationExpressionto each item of a referenced array and returns an array with the applied results.- Parameters:
fieldReference- must not be null.- Returns:
-
itemsOf
Starts building newVariableOperators.Mapthat applies anAggregationExpressionto each item of a referenced array and returns an array with the applied results.- Parameters:
source- must not be null.- Returns:
-
toDocument
Description copied from interface:AggregationExpression- Specified by:
toDocumentin interfaceAggregationExpression- Parameters:
context- must not be null.- Returns:
- the MongoDB native (
Document) form of the expression.
-