@org.apache.thrift.annotation.Nullable
  public static TJobExecutionStatus findByValue(int value) { 
    switch (value) {
      case 0:
        return IN_PROGRESS;
      case 1:
        return COMPLETE;
      case 2:
        return NOT_AVAILABLE;
      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.
service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TJobExecutionStatus.java