public static String getFunctionName(short functionId) {
    switch (functionId) {
      case FUN_AVG:
        return STR_AVG;
      case FUN_MIN:
        return STR_MIN;
      case FUN_MAX:
        return STR_MAX;
      case FUN_SUM:
        return STR_ADD;
      default:
        return null;
    }
  }
This method returns the function's name for the requested function identifier.

@param functionId Identifier of the function
@return Function name.
geode-core/src/main/java/org/apache/geode/internal/admin/statalerts/FunctionHelper.java