public EventBean process(EventBean[] eventsPerStream, boolean isNewData, boolean isSynthesize)
{
ExprEvaluator[] expressionNodes = selectExprContext.getExpressionNodes();
String[] columnNames = selectExprContext.getColumnNames();
ExprEvaluatorContext exprEvaluatorContext = selectExprContext.getExprEvaluatorContext();
EventAdapterService eventAdapterService = selectExprContext.getEventAdapterService();
// Evaluate all expressions and build a map of name-value pairs
Map<String, Object> props;
if (expressionNodes.length == 0)
{
props = Collections.EMPTY_MAP;
}
else
{
props = new HashMap<String, Object>();
for (int i = 0; i < expressionNodes.length; i++)
{
Object evalResult = expressionNodes[i].evaluate(eventsPerStream, isNewData, exprEvaluatorContext);
props.put(columnNames[i], evalResult);
}
}
return eventAdapterService.adaptorForTypedMap(props, resultEventType);
}