public static short getFunctionIdentifier(String qFunctionName) {

    if (qFunctionName == null) {
      return -1;
    }

    if (qFunctionName.equalsIgnoreCase(STR_ADD)) {
      return FUN_SUM;
    }
    if (qFunctionName.equalsIgnoreCase(STR_AVG)) {
      return FUN_AVG;
    }
    if (qFunctionName.equalsIgnoreCase(STR_MIN)) {
      return FUN_MIN;
    }
    if (qFunctionName.equalsIgnoreCase(STR_MAX)) {
      return FUN_MAX;
    }

    return -1;
  }
This function returns the function identifier for the requested function name.

@param qFunctionName Name of the function
@return Function identifier.
geode-core/src/main/java/org/apache/geode/internal/admin/statalerts/FunctionHelper.java