public static PrivilegeType posToObjPri(int pos) {
    switch (pos) {
      case 0:
        return PrivilegeType.CREATE;
      case 1:
        return PrivilegeType.DROP;
      case 2:
        return PrivilegeType.ALTER;
      case 3:
        return PrivilegeType.SELECT;
      case 4:
        return PrivilegeType.INSERT;
      case 5:
        return PrivilegeType.DELETE;
      default:
        throw new RuntimeException("Not support position");
    }
  }
Transform permission from name to privilegeId

@param authorizationList the list of privilege name
@return the set of privilege type
@throws AuthException throws if there are no privilege matched
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/AuthUtils.java