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
Modifier and TypeClassDescriptionstatic class
AggregationExpression
for$let
that bindsAggregationExpression
to variables for use in the specifiedin
expression, and returns the result of the expression.static class
AggregationExpression
for$map
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefine
(Collection<VariableOperators.Let.ExpressionVariable> variables) Start creating newVariableOperators.Let
that allows definition ofVariableOperators.Let.ExpressionVariable
that can be used within a nestedAggregationExpression
.define
(VariableOperators.Let.ExpressionVariable... variables) Start creating newVariableOperators.Let
that allows definition ofVariableOperators.Let.ExpressionVariable
that can be used within a nestedAggregationExpression
.mapItemsOf
(String fieldReference) Starts building newVariableOperators.Map
that applies anAggregationExpression
to each item of a referenced array and returns an array with the applied results.mapItemsOf
(AggregationExpression expression) Starts building newVariableOperators.Map
that applies anAggregationExpression
to 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.Map
that applies anAggregationExpression
to 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.Map
that applies anAggregationExpression
to 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.Let
that allows definition ofVariableOperators.Let.ExpressionVariable
that 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.Let
that allows definition ofVariableOperators.Let.ExpressionVariable
that can be used within a nestedAggregationExpression
.- Parameters:
variables
- must not be null.- Returns:
-