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
.- Author:
- Christoph Strobl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
static interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionStart creating newArrayOperators.Reduce
.arrayOf
(AggregationExpression arrayValueExpression) Start creating newArrayOperators.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
-
Method Details
-
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.
-
arrayOf
Start creating newArrayOperators.Reduce
.- Parameters:
fieldReference
- must not be null.- Returns:
- new instance of
ArrayOperators.Reduce.InitialValueBuilder
to 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.InitialValueBuilder
to createArrayOperators.Reduce
.
-