0001
0002
0003
0004
0005
0006
0007 package org.apache.hive.service.rpc.thrift;
0008
0009
0010 import java.util.Map;
0011 import java.util.HashMap;
0012 import org.apache.thrift.TEnum;
0013
0014 public enum TJobExecutionStatus implements org.apache.thrift.TEnum {
0015 IN_PROGRESS(0),
0016 COMPLETE(1),
0017 NOT_AVAILABLE(2);
0018
0019 private final int value;
0020
0021 private TJobExecutionStatus(int value) {
0022 this.value = value;
0023 }
0024
0025
0026
0027
0028 public int getValue() {
0029 return value;
0030 }
0031
0032
0033
0034
0035
0036 public static TJobExecutionStatus findByValue(int value) {
0037 switch (value) {
0038 case 0:
0039 return IN_PROGRESS;
0040 case 1:
0041 return COMPLETE;
0042 case 2:
0043 return NOT_AVAILABLE;
0044 default:
0045 return null;
0046 }
0047 }
0048 }