Class VariableOperators
java.lang.Object
org.springframework.data.mongodb.core.aggregation.VariableOperators
Gateway to variable aggregation operations.
- Since:
- 1.10
- Author:
- Christoph Strobl, Mark Paluch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAggregationExpressionfor$letthat bindsAggregationExpressionto variables for use in the specifiedinexpression, and returns the result of the expression.static classAggregationExpressionfor$map. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefine(Collection<VariableOperators.Let.ExpressionVariable> variables) Start creating newVariableOperators.Letthat allows definition ofVariableOperators.Let.ExpressionVariablethat can be used within a nestedAggregationExpression.define(VariableOperators.Let.ExpressionVariable... variables) Start creating newVariableOperators.Letthat allows definition ofVariableOperators.Let.ExpressionVariablethat can be used within a nestedAggregationExpression.mapItemsOf(String fieldReference) Starts building newVariableOperators.Mapthat applies anAggregationExpressionto each item of a referenced array and returns an array with the applied results.mapItemsOf(AggregationExpression expression) Starts building newVariableOperators.Mapthat applies anAggregationExpressionto each item of a referenced array and returns an array with the applied results.
-
Constructor Details
-
VariableOperators
public VariableOperators()
-
-
Method Details
-
mapItemsOf
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:
-
mapItemsOf
Starts building newVariableOperators.Mapthat applies anAggregationExpressionto each item of a referenced array and returns an array with the applied results.- Parameters:
expression- must not be null.- Returns:
-
define
public static VariableOperators.Let.LetBuilder define(VariableOperators.Let.ExpressionVariable... variables) Start creating newVariableOperators.Letthat allows definition ofVariableOperators.Let.ExpressionVariablethat can be used within a nestedAggregationExpression.- Parameters:
variables- must not be null.- Returns:
-
define
public static VariableOperators.Let.LetBuilder define(Collection<VariableOperators.Let.ExpressionVariable> variables) Start creating newVariableOperators.Letthat allows definition ofVariableOperators.Let.ExpressionVariablethat can be used within a nestedAggregationExpression.- Parameters:
variables- must not be null.- Returns:
-