public static class ConditionalOperators.IfNull extends Object implements AggregationExpression
$ifNull operator. Replacement values can be either field references, expressions, values of simple MongoDB types or values that can be
converted to a simple MongoDB type.| Modifier and Type | Class and Description |
|---|---|
static interface |
ConditionalOperators.IfNull.IfNullBuilder |
static interface |
ConditionalOperators.IfNull.ThenBuilder |
| Modifier and Type | Method and Description |
|---|---|
static ConditionalOperators.IfNull.ThenBuilder |
ifNull(AggregationExpression expression)
Creates new
ConditionalOperators.IfNull. |
static ConditionalOperators.IfNull.ThenBuilder |
ifNull(String fieldReference)
Creates new
ConditionalOperators.IfNull. |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
public static ConditionalOperators.IfNull.ThenBuilder ifNull(String fieldReference)
ConditionalOperators.IfNull.fieldReference - the field to check for a null value, field reference must not be null
.public static ConditionalOperators.IfNull.ThenBuilder ifNull(AggregationExpression expression)
ConditionalOperators.IfNull.expression - the expression to check for a null value, field reference must not be
null.public com.mongodb.DBObject toDbObject(AggregationOperationContext context)
AggregationExpressiontoDbObject in interface AggregationExpressionCopyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.