Class OrderedObjectParamExpression
java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.OrderedObjectParamExpression
- All Implemented Interfaces:
Expression
,Serializable
For use in view parameter lists, this is a wrapper expression
that adds an ascending or descending sort indicator to its single child expression.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true for descending, false for ascending.Return precedence.boolean
Returns true for descending, false for ascending.void
setDescending
(boolean descending) Return true for descending.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
-
OrderedObjectParamExpression
public OrderedObjectParamExpression()Ctor. -
OrderedObjectParamExpression
public OrderedObjectParamExpression(boolean descending) Ctor.- Parameters:
descending
- to indicate a descending sort, or false for ascending
-
-
Method Details
-
isDescending
public boolean isDescending()Returns true for descending, false for ascending.- Returns:
- indicator for descending sort
-
getDescending
public boolean getDescending()Returns true for descending, false for ascending.- Returns:
- indicator for descending sort
-
setDescending
public void setDescending(boolean descending) Return true for descending.- Parameters:
descending
- indicator
-
getPrecedence
Return precedence.- Returns:
- precedence
-
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
-