this.optionalMathContext = optionalMathContext;
}
public Object evaluateEnumMethod(EventBean[] eventsLambda, Collection target, boolean isNewData, ExprEvaluatorContext context) {
AggregatorAvgBigDecimal agg = new AggregatorAvgBigDecimal(optionalMathContext);
ObjectArrayEventBean resultEvent = new ObjectArrayEventBean(new Object[1], resultEventType);
Collection<Object> values = (Collection<Object>) target;
for (Object next : values) {
resultEvent.getProperties()[0] = next;
eventsLambda[streamNumLambda] = resultEvent;
Number num = (Number) innerExpression.evaluate(eventsLambda, isNewData, context);
if (num == null) {
continue;
}
agg.enter(num);
}
return agg.getValue();
}