@org.apache.thrift.annotation.Nullable
  public static StageType findByValue(int value) { 
    switch (value) {
      case 0:
        return CONDITIONAL;
      case 1:
        return COPY;
      case 2:
        return DDL;
      case 3:
        return MAPRED;
      case 4:
        return EXPLAIN;
      case 5:
        return FETCH;
      case 6:
        return FUNC;
      case 7:
        return MAPREDLOCAL;
      case 8:
        return MOVE;
      case 9:
        return STATS;
      case 10:
        return DEPENDENCY_COLLECTION;
      case 11:
        return COLUMNSTATS;
      case 12:
        return REPL_DUMP;
      case 13:
        return REPL_BOOTSTRAP_LOAD;
      case 14:
        return REPL_STATE_LOG;
      case 15:
        return REPL_TXN;
      case 16:
        return REPL_INCREMENTAL_LOAD;
      case 17:
        return SCHEDULED_QUERY_MAINT;
      case 18:
        return ACK;
      case 19:
        return RANGER_DUMP;
      case 20:
        return RANGER_LOAD;
      case 21:
        return RANGER_DENY;
      case 22:
        return ATLAS_DUMP;
      case 23:
        return ATLAS_LOAD;
      default:
        return null;
    }
  }
Find a the enum type by its integer value, as defined in the Thrift IDL.
@return null if the value is not found.
ql/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/ql/plan/api/StageType.java