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.OrBuilder |
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. |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, toDocumentcreate, createpublic 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 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.