|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.expression.OrderByProcessorSimple
public class OrderByProcessorSimple
An order-by processor that sorts events according to the expressions in the order_by clause.
Constructor Summary | |
---|---|
OrderByProcessorSimple(List<Pair<ExprNode,Boolean>> orderByList,
List<ExprNode> groupByNodes,
boolean needsGroupByKeys,
AggregationService aggregationService)
Ctor. |
Method Summary | |
---|---|
protected static int |
compareValues(Object valueOne,
Object valueTwo,
boolean descending)
Compares values for sorting. |
EventBean[] |
sort(EventBean[] outgoingEvents,
EventBean[][] generatingEvents)
Sort the output events. |
EventBean[] |
sort(EventBean[] outgoingEvents,
EventBean[][] generatingEvents,
MultiKey[] groupByKeys)
Sort the output events, using the provided group-by keys for evaluating grouped aggregation functions, and avoiding the cost of recomputing the keys. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrderByProcessorSimple(List<Pair<ExprNode,Boolean>> orderByList, List<ExprNode> groupByNodes, boolean needsGroupByKeys, AggregationService aggregationService)
orderByList
- -
the nodes that generate the keys to sort events ongroupByNodes
- -
generate the keys for determining aggregation groupsneedsGroupByKeys
- -
indicates whether this processor needs to have individual
group by keys to evaluate the sort condition successfullyaggregationService
- -
used to evaluate aggregate functions in the group-by and
sort-by clausesMethod Detail |
---|
public EventBean[] sort(EventBean[] outgoingEvents, EventBean[][] generatingEvents)
OrderByProcessor
sort
in interface OrderByProcessor
outgoingEvents
- - the events to be sortedgeneratingEvents
- - the events that generated the output events (each event has a corresponding array of generating events per different event streams)
public EventBean[] sort(EventBean[] outgoingEvents, EventBean[][] generatingEvents, MultiKey[] groupByKeys)
OrderByProcessor
sort
in interface OrderByProcessor
outgoingEvents
- - the events to sortgeneratingEvents
- - the events that generated the output events (each event has a corresponding array of generating events per different event streams)groupByKeys
- - the keys to use for determining the group-by group of output events
protected static int compareValues(Object valueOne, Object valueTwo, boolean descending)
valueOne
- -first value to compare, can be nullvalueTwo
- -second value to compare, can be nulldescending
- - true if ascending, false if descending
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |