Class LetExpression
- java.lang.Object
-
- dev.morphia.aggregation.expressions.impls.Expression
-
- dev.morphia.aggregation.expressions.impls.LetExpression
-
public class LetExpression extends Expression
-
-
Constructor Summary
Constructors Constructor Description LetExpression(Expression in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(Datastore datastore, BsonWriter writer, EncoderContext encoderContext)LetExpressionvariable(String name, Expression expression)Defines a new variable-
Methods inherited from class dev.morphia.aggregation.expressions.impls.Expression
getOperation, getValue, toString
-
-
-
-
Constructor Detail
-
LetExpression
public LetExpression(Expression in)
-
-
Method Detail
-
encode
public void encode(Datastore datastore, BsonWriter writer, EncoderContext encoderContext)
- Overrides:
encodein classExpression- Parameters:
datastore- the datastorewriter- the writerencoderContext- the context
-
variable
public LetExpression variable(String name, Expression expression)
Defines a new variable- Parameters:
name- the variable nameexpression- the value expression- Returns:
- this
-
-