|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.OrderByClause
public class OrderByClause
An order-by clause consists of expressions and flags indicating if ascending or descending.
Constructor Summary | |
---|---|
OrderByClause()
Ctor. |
|
OrderByClause(Expression... expressions)
Ctor. |
|
OrderByClause(java.lang.String... properties)
Ctor. |
Method Summary | |
---|---|
OrderByClause |
add(Expression expression,
boolean isDescending)
Adds an expression and flag. |
OrderByClause |
add(java.lang.String property,
boolean isDescending)
Adds a property and flag. |
static OrderByClause |
create()
Create an empty order-by clause. |
static OrderByClause |
create(Expression... expressions)
Create an order-by clause. |
static OrderByClause |
create(java.lang.String... properties)
Create an order-by clause. |
java.util.List<OrderByElement> |
getOrderByExpressions()
Returns a list of expressions and flags to order by. |
void |
setOrderByExpressions(java.util.List<OrderByElement> orderByExpressions)
Sets a list of expressions and flags to order by. |
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 |
---|
public OrderByClause()
public OrderByClause(java.lang.String... properties)
properties
- property namespublic OrderByClause(Expression... expressions)
expressions
- is the expressionsMethod Detail |
---|
public static OrderByClause create()
public static OrderByClause create(java.lang.String... properties)
properties
- is the property names to order by
public static OrderByClause create(Expression... expressions)
expressions
- is the expressios returning values to order by
public OrderByClause add(java.lang.String property, boolean isDescending)
property
- is the name of the property to addisDescending
- true for descending, false for ascending sort
public OrderByClause add(Expression expression, boolean isDescending)
expression
- returns values to order byisDescending
- true for descending, false for ascending sort
public java.util.List<OrderByElement> getOrderByExpressions()
public void setOrderByExpressions(java.util.List<OrderByElement> orderByExpressions)
orderByExpressions
- is the expressions to order bypublic void toEPL(java.io.StringWriter writer)
writer
- to output to
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |