Class ReplaceExpression
- java.lang.Object
-
- dev.morphia.aggregation.experimental.expressions.impls.Expression
-
- dev.morphia.aggregation.experimental.expressions.impls.ReplaceExpression
-
public class ReplaceExpression extends Expression
Defines expressions for $replaceAll and $replaceOne- Since:
- 2.1
-
-
Constructor Summary
Constructors Constructor Description ReplaceExpression(String operator, Expression input, Expression find, Expression replacement)
-
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)
-
Methods inherited from class dev.morphia.aggregation.experimental.expressions.impls.Expression
getOperation, getValue, toString
-
-
-
-
Constructor Detail
-
ReplaceExpression
public ReplaceExpression(String operator, Expression input, Expression find, Expression replacement)
- Parameters:
operator
- the operator nameinput
- the input value/sourcefind
- the search expressionreplacement
- the replacement value
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
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
-
-