Class Expression
- java.lang.Object
-
- dev.morphia.aggregation.expressions.impls.Expression
-
- Direct Known Subclasses:
Accumulator,AccumulatorExpression,ArrayExpression,ArrayFilterExpression,ArrayIndexExpression,BooleanExpressions.LogicalExpression,CalculusExpression,ConvertExpression,DateDeltaExpression,DateDiffExpression,DateExpressions.DateExpression,DateFromParts,DateFromString,DateToParts,DateToString,DateTruncExpression,DocumentExpression,EndResultsExpression,ExpMovingAvg,ExpressionList,FunctionExpression,IfNull,IndexExpression,IsoDates,LetExpression,LiteralExpression,MapExpression,MathExpression,MetaExpression,NRankedResultsExpression,ObjectExpressions.MergeObjects,Push,RangeExpression,RankedResultsExpression,ReduceExpression,RegexExpression,ReplaceExpression,SetFieldExpression,ShiftExpression,SliceExpression,SwitchExpression,TrimExpression,UnsetFieldExpression,ValueExpression,ZipExpression
public class Expression extends Object
Base class for all the expression types.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description Expression(String operation)Expression(String operation, Expression value)Expression(String operation, List<Expression> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(Datastore datastore, BsonWriter writer, EncoderContext encoderContext)StringgetOperation()ExpressiongetValue()StringtoString()
-
-
-
Constructor Detail
-
Expression
public Expression(String operation)
-
Expression
@MorphiaInternal public Expression(String operation, Expression value)
- Parameters:
operation- the expression namevalue- the value
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
Expression
@MorphiaInternal public Expression(String operation, List<Expression> value)
- Parameters:
operation- the expression namevalue- the 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
@MorphiaInternal public void encode(Datastore datastore, BsonWriter writer, EncoderContext encoderContext)
- Parameters:
datastore- the datastorewriter- the writerencoderContext- the context
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
getOperation
@MorphiaInternal public String getOperation()
- Returns:
- the value
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
getValue
@Nullable @MorphiaInternal public Expression getValue()
- Returns:
- the value
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-