Class ArrayOperators.Reduce.PropertyExpression
java.lang.Object
org.springframework.data.mongodb.core.aggregation.ArrayOperators.Reduce.PropertyExpression
- All Implemented Interfaces:
AggregationExpression
,MongoExpression
- Enclosing class:
- ArrayOperators.Reduce
public static class ArrayOperators.Reduce.PropertyExpression
extends Object
implements AggregationExpression
- Author:
- Christoph Strobl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Constructor Summary
ModifierConstructorDescriptionprotected
PropertyExpression
(String propertyName, AggregationExpression aggregationExpression) -
Method Summary
Modifier and TypeMethodDescriptionDefine a result property for anAggregationExpression
used inArrayOperators.Reduce
.org.bson.Document
toDocument
(AggregationOperationContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.mongodb.core.aggregation.AggregationExpression
toDocument
-
Constructor Details
-
PropertyExpression
-
-
Method Details
-
property
Define a result property for anAggregationExpression
used inArrayOperators.Reduce
.- Parameters:
name
- must not be null.- Returns:
- new instance of
ArrayOperators.Reduce.PropertyExpression.AsBuilder
to createArrayOperators.Reduce
.
-
toDocument
Description copied from interface:AggregationExpression
- Specified by:
toDocument
in interfaceAggregationExpression
- Parameters:
context
- must not be null.- Returns:
- the MongoDB native (
Document
) form of the expression.
-