aggregationsAggregateMethods[i] = m;
break;
}
}
if (null == aggregationsAggregateMethods[i]) {
throw new HiveException("Cannot find " + aggregateMethodName + " method of UDAF class "
+ aggregationClasses[i].getName() + " that accepts "
+ aggregationParameterFields[i].length + " parameters!");
}
// aggregationsEvaluateMethods
try {
aggregationsEvaluateMethods[i] = aggregationClasses[i].getMethod(evaluateMethodName);
} catch (Exception e) {
throw new HiveException("Unable to get the method named " + evaluateMethodName + " from "
+ aggregationClasses[i] + ": " + e.getMessage());
}
if (null == aggregationsEvaluateMethods[i]) {
throw new HiveException("Cannot find " + evaluateMethodName + " method of UDAF class "
+ aggregationClasses[i].getName() + "!");
}
assert(aggregationsEvaluateMethods[i] != null);
}