public static class VariableOperators.Map extends Object implements AggregationExpression
AggregationExpression for $map.| Modifier and Type | Class and Description |
|---|---|
static interface |
VariableOperators.Map.AsBuilder |
static interface |
VariableOperators.Map.FunctionBuilder |
| Modifier and Type | Method and Description |
|---|---|
static VariableOperators.Map.AsBuilder |
itemsOf(AggregationExpression source)
Starts building new
VariableOperators.Map that applies an AggregationExpression to each item of a referenced array
and returns an array with the applied results. |
static VariableOperators.Map.AsBuilder |
itemsOf(String fieldReference)
Starts building new
VariableOperators.Map that applies an AggregationExpression to each item of a referenced array
and returns an array with the applied results. |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, toDocumentcreate, createpublic static VariableOperators.Map.AsBuilder itemsOf(String fieldReference)
VariableOperators.Map that applies an AggregationExpression to each item of a referenced array
and returns an array with the applied results.fieldReference - must not be null.public static VariableOperators.Map.AsBuilder itemsOf(AggregationExpression source)
VariableOperators.Map that applies an AggregationExpression to each item of a referenced array
and returns an array with the applied results.source - must not be null.public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpressiontoDocument in interface AggregationExpressioncontext - must not be null.Document) form of the expression.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.