Class MathExpression
- java.lang.Object
-
- dev.morphia.aggregation.expressions.impls.Expression
-
- dev.morphia.aggregation.expressions.impls.MathExpression
-
public class MathExpression extends Expression
Base class for the math expressions- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description MathExpression(String operation, Expression operand)MathExpression(String operation, List<Expression> operands)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(Datastore datastore, BsonWriter writer, EncoderContext encoderContext)ExpressionListgetValue()-
Methods inherited from class dev.morphia.aggregation.expressions.impls.Expression
getOperation, toString
-
-
-
-
Constructor Detail
-
MathExpression
@MorphiaInternal public MathExpression(String operation, List<Expression> operands)
- Parameters:
operation-operands-
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
MathExpression
@MorphiaInternal public MathExpression(String operation, Expression operand)
- Parameters:
operation-operand-
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(Datastore datastore, BsonWriter writer, EncoderContext encoderContext)
- Overrides:
encodein classExpression- Parameters:
datastore- the datastorewriter- the writerencoderContext- the context
-
getValue
public ExpressionList getValue()
- Overrides:
getValuein classExpression- Returns:
- the value
-
-