}
super.setTypeInfo(ExprDotEvalTypeInfo.scalarOrUnderlying(Double.class));
return new EnumEvalAverageScalar(numStreamsIncoming);
}
ExprDotEvalParamLambda first = (ExprDotEvalParamLambda) bodiesAndParameters.get(0);
Class returnType = first.getBodyEvaluator().getType();
if (returnType == BigDecimal.class || returnType == BigInteger.class) {
super.setTypeInfo(ExprDotEvalTypeInfo.scalarOrUnderlying(BigDecimal.class));
if (inputEventType == null) {
return new EnumEvalAverageBigDecimalScalarLambda(first.getBodyEvaluator(), first.getStreamCountIncoming(),
(ObjectArrayEventType) first.getGoesToTypes()[0]);
}
return new EnumEvalAverageBigDecimalEvents(first.getBodyEvaluator(), first.getStreamCountIncoming());
}
super.setTypeInfo(ExprDotEvalTypeInfo.scalarOrUnderlying(Double.class));
if (inputEventType == null) {
return new EnumEvalAverageScalarLambda(first.getBodyEvaluator(), first.getStreamCountIncoming(),
(ObjectArrayEventType) first.getGoesToTypes()[0]);
}
return new EnumEvalAverageEvents(first.getBodyEvaluator(), first.getStreamCountIncoming());
}