com.espertech.esper.client.soda
Class OrderByElement

java.lang.Object
  extended by com.espertech.esper.client.soda.OrderByElement
All Implemented Interfaces:
java.io.Serializable

public class OrderByElement
extends java.lang.Object
implements java.io.Serializable

A single entry in an order-by clause consisting of an expression and order ascending or descending flag.

See Also:
Serialized Form

Constructor Summary
OrderByElement()
          Ctor.
OrderByElement(Expression expression, boolean descending)
          Ctor.
 
Method Summary
 Expression getExpression()
          Returns the order-by value expression.
 boolean isDescending()
          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(java.io.StringWriter writer)
          Renders the clause in textual representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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(java.io.StringWriter writer)
Renders the clause in textual representation.

Parameters:
writer - to output to

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com