Class OrderByElement

java.lang.Object
com.espertech.esper.common.client.soda.OrderByElement
All Implemented Interfaces:
Serializable

public class OrderByElement extends Object implements Serializable
A single entry in an order-by clause consisting of an expression and order ascending or descending flag.
See Also:
  • Constructor Details

    • OrderByElement

      public OrderByElement()
      Ctor.
    • OrderByElement

      public OrderByElement(Expression expression, boolean descending)
      Ctor.
      Parameters:
      expression - is the expression to order by
      descending - true for descending sort, false for ascending sort
  • Method Details

    • getExpression

      public Expression getExpression()
      Returns the order-by value expression.
      Returns:
      expression
    • setExpression

      public void setExpression(Expression expression)
      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

      public void toEPL(StringWriter writer)
      Renders the clause in textual representation.
      Parameters:
      writer - to output to