Class PreviousExpression
java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.PreviousExpression
- All Implemented Interfaces:
Expression
,Serializable
Previous function for obtaining property values of previous events.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.PreviousExpression
(int index, String propertyName) Ctor.PreviousExpression
(Expression expression, String propertyName) Ctor.PreviousExpression
(PreviousExpressionType type, Expression expression) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns precedence.getType()
Returns the type of the previous expression (tail, first, window, count)void
Sets the type of the previous expression (tail, first, window, count)void
toPrecedenceFreeEPL
(StringWriter writer) Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.Methods inherited from class com.espertech.esper.common.client.soda.ExpressionBase
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
-
Constructor Details
-
PreviousExpression
public PreviousExpression()Ctor. -
PreviousExpression
Ctor.- Parameters:
expression
- provides the index to usepropertyName
- is the name of the property to return the value for
-
PreviousExpression
Ctor.- Parameters:
index
- provides the indexpropertyName
- is the name of the property to return the value for
-
PreviousExpression
Ctor.- Parameters:
type
- type of previous expression (tail, first, window, count)expression
- to evaluate
-
-
Method Details
-
getPrecedence
Description copied from interface:Expression
Returns precedence.- Returns:
- precedence
-
getType
Returns the type of the previous expression (tail, first, window, count)- Returns:
- type
-
setType
Sets the type of the previous expression (tail, first, window, count)- Parameters:
type
- to set
-
toPrecedenceFreeEPL
Description copied from class:ExpressionBase
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.- Specified by:
toPrecedenceFreeEPL
in classExpressionBase
- Parameters:
writer
- is the output to use
-