private Value evaluateFunction(Function function, Value[] values) throws FunctionException { if (function.isAggregate()) { AggregateFunction f = (AggregateFunction) function; f.evaluate(dsf, values); Value lastCall = f.getAggregateResult(); return lastCall; } else { return ((ScalarFunction) function).evaluate(dsf, values); } }
protected Type evaluate(AggregateFunction function, Type... args) throws FunctionException { return function.getType(args); }
protected Value evaluateAggregatedZeroRows(AggregateFunction function) { return function.getAggregateResult(); }