Back to home page

OSCL-LXR

 
 

    


0001 /**
0002  * Autogenerated by Thrift Compiler (0.9.3)
0003  *
0004  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
0005  *  @generated
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    * Get the integer value of this enum value, as defined in the Thrift IDL.
0027    */
0028   public int getValue() {
0029     return value;
0030   }
0031 
0032   /**
0033    * Find a the enum type by its integer value, as defined in the Thrift IDL.
0034    * @return null if the value is not found.
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 }