Class ArrayOperators.Reduce
java.lang.Object
org.springframework.data.mongodb.core.aggregation.ArrayOperators.Reduce
- All Implemented Interfaces:
AggregationExpression, MongoExpression
- Enclosing class:
ArrayOperators
AggregationExpression for $reduce.- Since:
- 1.0
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionStart creating newArrayOperators.Reduce.arrayOf(AggregationExpression arrayValueExpression) Start creating newArrayOperators.Reduce.org.bson.DocumenttoDocument(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
-
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.
-
arrayOf
Start creating newArrayOperators.Reduce.- Parameters:
fieldReference- must not be null.- Returns:
- new instance of
ArrayOperators.Reduce.InitialValueBuilderto createArrayOperators.Reduce.
-
arrayOf
public static ArrayOperators.Reduce.InitialValueBuilder arrayOf(AggregationExpression arrayValueExpression) Start creating newArrayOperators.Reduce.- Parameters:
arrayValueExpression- must not be null.- Returns:
- new instance of
ArrayOperators.Reduce.InitialValueBuilderto createArrayOperators.Reduce.
-