public class OrderByProcessorFactoryImpl extends Object implements OrderByProcessorFactory
Constructor and Description |
---|
OrderByProcessorFactoryImpl(List<OrderByItem> orderByList,
ExprEvaluator[] groupByEvals,
boolean needsGroupByKeys,
boolean isSortUsingCollator,
EngineImportService engineImportService,
boolean onDemandQuery,
String statementName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Comparator<Object> |
getComparator() |
protected static Comparator<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() |
public OrderByProcessorFactoryImpl(List<OrderByItem> orderByList, ExprEvaluator[] groupByEvals, boolean needsGroupByKeys, boolean isSortUsingCollator, EngineImportService engineImportService, boolean onDemandQuery, String statementName) throws ExprValidationException
orderByList
- -
the nodes that generate the keys to sort events ongroupByEvals
- -
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 CollatorstatementName
- statement nameengineImportService
- engine importsonDemandQuery
- fire-and-forget flagExprValidationException
- when order-by items don't divulge a typepublic OrderByProcessor instantiate(AggregationService aggregationService, AgentInstanceContext agentInstanceContext)
instantiate
in interface OrderByProcessorFactory
public OrderByElement[] getOrderBy()
public ExprEvaluator[] getGroupByNodes()
public boolean isNeedsGroupByKeys()
public Comparator<Object> getComparator()
protected static Comparator<Object> getComparator(OrderByElement[] orderBy, boolean isSortUsingCollator) throws ExprValidationException
orderBy
- order-by itemsisSortUsingCollator
- true for Collator string sortingExprValidationException
- if the return type of order items cannot be determined