Module spring.data.mongodb
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.-
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.org.bson.DocumenttoDocument(AggregationOperationContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.mongodb.core.aggregation.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.
-