|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.core.OrderByProcessorFactoryImpl
public class OrderByProcessorFactoryImpl
An order-by processor that sorts events according to the expressions in the order_by clause.
Constructor Summary | |
---|---|
OrderByProcessorFactoryImpl(java.util.List<OrderByItem> orderByList,
ExprNode[] groupByNodes,
boolean needsGroupByKeys,
boolean isSortUsingCollator)
Ctor. |
Method Summary | |
---|---|
java.util.Comparator<java.lang.Object> |
getComparator()
|
protected static java.util.Comparator<java.lang.Object> |
getComparator(OrderByElement[] orderBy,
boolean isSortUsingCollator)
Returns a comparator for order items that may sort string values using Collator. |
ExprEvaluator[] |
getGroupByNodes()
|
OrderByElement[] |
getOrderBy()
|
OrderByProcessor |
instantiate(AggregationService aggregationService,
AgentInstanceContext agentInstanceContext)
|
boolean |
isNeedsGroupByKeys()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrderByProcessorFactoryImpl(java.util.List<OrderByItem> orderByList, ExprNode[] groupByNodes, boolean needsGroupByKeys, boolean isSortUsingCollator) throws ExprValidationException
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 successfullyisSortUsingCollator
- for string value sorting using compare or Collator
ExprValidationException
- when order-by items don't divulge a typeMethod Detail |
---|
public OrderByProcessor instantiate(AggregationService aggregationService, AgentInstanceContext agentInstanceContext)
instantiate
in interface OrderByProcessorFactory
public OrderByElement[] getOrderBy()
public ExprEvaluator[] getGroupByNodes()
public boolean isNeedsGroupByKeys()
public java.util.Comparator<java.lang.Object> getComparator()
protected static java.util.Comparator<java.lang.Object> getComparator(OrderByElement[] orderBy, boolean isSortUsingCollator) throws ExprValidationException
orderBy
- order-by itemsisSortUsingCollator
- true for Collator string sorting
ExprValidationException
- if the return type of order items cannot be determined
|
© 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 |