com.espertech.esper.epl.spec
Class OrderByItem

java.lang.Object
  extended by com.espertech.esper.epl.spec.OrderByItem
All Implemented Interfaces:
MetaDefItem, java.io.Serializable

public class OrderByItem
extends java.lang.Object
implements MetaDefItem, java.io.Serializable

Specification object to an element in the order-by expression.

See Also:
Serialized Form

Field Summary
static OrderByItem[] EMPTY_ORDERBY_ARRAY
           
 
Constructor Summary
OrderByItem(ExprNode exprNode, boolean ascending)
          Ctor.
 
Method Summary
 OrderByItem copy()
           
 ExprNode getExprNode()
          Returns the order-by expression node.
 boolean isDescending()
          Returns true for ascending, false for descending.
static OrderByItem[] toArray(java.util.Collection<OrderByItem> expressions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ORDERBY_ARRAY

public static final OrderByItem[] EMPTY_ORDERBY_ARRAY
Constructor Detail

OrderByItem

public OrderByItem(ExprNode exprNode,
                   boolean ascending)
Ctor.

Parameters:
exprNode - is the order-by expression node
ascending - is true for ascending, or false for descending sort
Method Detail

getExprNode

public ExprNode getExprNode()
Returns the order-by expression node.

Returns:
expression node.

isDescending

public boolean isDescending()
Returns true for ascending, false for descending.

Returns:
indicator if ascending or descending

copy

public OrderByItem copy()

toArray

public static OrderByItem[] toArray(java.util.Collection<OrderByItem> expressions)

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