public static MaintenanceOpType findOpType(int ordinal) {
    return MOP.get(ordinal);
  }
Finds an op-type by its ordinal.
@param ordinal the enum ordinal
@return the enum value or null if not found
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/properties/HMSPropertyManager.java