Class IfNull
- java.lang.Object
-
- dev.morphia.aggregation.experimental.expressions.impls.Expression
-
- dev.morphia.aggregation.experimental.expressions.impls.IfNull
-
- All Implemented Interfaces:
FieldHolder<IfNull>
public class IfNull extends Expression implements FieldHolder<IfNull>
-
-
Constructor Summary
Constructors Constructor Description IfNull()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(Mapper mapper, org.bson.BsonWriter writer, org.bson.codecs.EncoderContext encoderContext)
IfNull
field(String name, Expression expression)
DocumentExpression
getDocument()
Expression
getReplacement()
Expression
getTarget()
IfNull
replacement(Expression replacement)
IfNull
target(Expression target)
-
Methods inherited from class dev.morphia.aggregation.experimental.expressions.impls.Expression
getOperation, getValue, toString
-
-
-
-
Method Detail
-
encode
public void encode(Mapper mapper, org.bson.BsonWriter writer, org.bson.codecs.EncoderContext encoderContext)
- Overrides:
encode
in classExpression
- Parameters:
mapper
- the mapperwriter
- the writerencoderContext
- the context
-
field
public IfNull field(String name, Expression expression)
- Specified by:
field
in interfaceFieldHolder<IfNull>
-
getDocument
public DocumentExpression getDocument()
-
getReplacement
public Expression getReplacement()
-
getTarget
public Expression getTarget()
-
replacement
public IfNull replacement(Expression replacement)
-
target
public IfNull target(Expression target)
-
-