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