Example #1
0
  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);
    }
  }
Example #2
0
 protected Type evaluate(AggregateFunction function, Type... args) throws FunctionException {
   return function.getType(args);
 }
Example #3
0
 protected Value evaluateAggregatedZeroRows(AggregateFunction function) {
   return function.getAggregateResult();
 }