Class OrderByClause
java.lang.Object
com.espertech.esper.common.client.soda.OrderByClause
- All Implemented Interfaces:
Serializable
An order-by clause consists of expressions and flags indicating if ascending or descending.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.OrderByClause
(Expression... expressions) Ctor.OrderByClause
(String... properties) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionadd
(Expression expression, boolean isDescending) Adds an expression and flag.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 an order-by clause.Returns a list of expressions and flags to order by.void
setOrderByExpressions
(List<OrderByElement> orderByExpressions) Sets a list of expressions and flags to order by.void
toEPL
(StringWriter writer) Renders the clause in textual representation.
-
Constructor Details
-
OrderByClause
public OrderByClause()Ctor. -
OrderByClause
Ctor.- Parameters:
properties
- property names
-
OrderByClause
Ctor.- Parameters:
expressions
- is the expressions
-
-
Method Details
-
create
Create an empty order-by clause.- Returns:
- clause
-
create
Create an order-by clause.- Parameters:
properties
- is the property names to order by- Returns:
- clause
-
create
Create an order-by clause.- Parameters:
expressions
- is the expressios returning values to order by- Returns:
- clause
-
add
Adds a property and flag.- Parameters:
property
- is the name of the property to addisDescending
- true for descending, false for ascending sort- Returns:
- clause
-
add
Adds an expression and flag.- Parameters:
expression
- returns values to order byisDescending
- true for descending, false for ascending sort- Returns:
- clause
-
getOrderByExpressions
Returns a list of expressions and flags to order by.- Returns:
- order-by elements
-
setOrderByExpressions
Sets a list of expressions and flags to order by.- Parameters:
orderByExpressions
- is the expressions to order by
-
toEPL
Renders the clause in textual representation.- Parameters:
writer
- to output to
-