/**
 * Autogenerated by Thrift Compiler (0.16.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package org.apache.hadoop.hive.ql.plan.api;


@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)")
public enum StageType implements org.apache.thrift.TEnum {
  CONDITIONAL(0),
  COPY(1),
  DDL(2),
  MAPRED(3),
  EXPLAIN(4),
  FETCH(5),
  FUNC(6),
  MAPREDLOCAL(7),
  MOVE(8),
  STATS(9),
  DEPENDENCY_COLLECTION(10),
  COLUMNSTATS(11),
  REPL_DUMP(12),
  REPL_BOOTSTRAP_LOAD(13),
  REPL_STATE_LOG(14),
  REPL_TXN(15);

  private final int value;

  private StageType(int value) {
    this.value = value;
  }

  /**
   * Get the integer value of this enum value, as defined in the Thrift IDL.
   */
  public int getValue() {
    return value;
  }

  /**
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
   * @return null if the value is not found.
   */
  @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;
      default:
        return null;
    }
  }
}
