public static class EvaluationOperators.EvaluationOperatorFactory.Expr extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractAggregationExpression.Expand
Expand a nested list of values to single entries or keep the list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
from, toDocument
create, create
protected String getMongoMethod()
public static EvaluationOperators.EvaluationOperatorFactory.Expr valueOf(String fieldReference)
EvaluationOperators.EvaluationOperatorFactory.Expr
.fieldReference
- must not be null.EvaluationOperators.EvaluationOperatorFactory.Expr
.public static EvaluationOperators.EvaluationOperatorFactory.Expr valueOf(AggregationExpression expression)
EvaluationOperators.EvaluationOperatorFactory.Expr
.expression
- must not be null.EvaluationOperators.EvaluationOperatorFactory.Expr
.public CriteriaDefinition toCriteriaDefinition(AggregationOperationContext context)
$expr
as CriteriaDefinition
.CriteriaDefinition
from this expression.public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpression
toDocument
in interface AggregationExpression
context
- must not be null.Document
) form of the expression.public org.bson.Document toDocument(Object value, AggregationOperationContext context)
protected List<Object> append(Object value, AbstractAggregationExpression.Expand expandList)
protected Map<String,Object> appendAt(int index, String key, Object value)
LinkedHashMap
.index
- key
- value
- protected <T> T get(int index)
T
- index
- protected <T> T get(Object key)
T
- key
- protected boolean contains(Object key)
key
- Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.