Class OrderByElement
java.lang.Object
com.espertech.esper.common.client.soda.OrderByElement
- All Implemented Interfaces:
Serializable
A single entry in an order-by clause consisting of an expression and order ascending or descending flag.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the order-by value expression.boolean
Returns true for descending sorts for this column, false for ascending sort.void
setDescending
(boolean descending) Set to true for descending sorts for this column, false for ascending sort.void
setExpression
(Expression expression) Sets the order-by value expression.void
toEPL
(StringWriter writer) Renders the clause in textual representation.
-
Constructor Details
-
OrderByElement
public OrderByElement()Ctor. -
OrderByElement
Ctor.- Parameters:
expression
- is the expression to order bydescending
- true for descending sort, false for ascending sort
-
-
Method Details
-
getExpression
Returns the order-by value expression.- Returns:
- expression
-
setExpression
Sets the order-by value expression.- Parameters:
expression
- provides order-by values
-
isDescending
public boolean isDescending()Returns true for descending sorts for this column, false for ascending sort.- Returns:
- true for descending sort
-
setDescending
public void setDescending(boolean descending) Set to true for descending sorts for this column, false for ascending sort.- Parameters:
descending
- true for descending sort
-
toEPL
Renders the clause in textual representation.- Parameters:
writer
- to output to
-