super(innerExpression, streamCountIncoming);
}
public Object evaluateEnumMethod(Collection target, boolean isNewData, ExprEvaluatorContext context) {
BigDecimalAvgAggregator agg = new BigDecimalAvgAggregator();
Collection<EventBean> beans = (Collection<EventBean>) target;
for (EventBean next : beans) {
eventsLambda[streamNumLambda] = next;
Number num = (Number) innerExpression.evaluate(eventsLambda, isNewData, context);
if (num == null) {
continue;
}
agg.enter(num);
}
return agg.getValue();
}