Back to home page

OSCL-LXR

 
 

    


0001 /**
0002  * Autogenerated by Thrift Compiler (0.9.0)
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.cli.thrift;
0008 
0009 
0010 import java.util.Map;
0011 import java.util.HashMap;
0012 import org.apache.thrift.TEnum;
0013 
0014 public enum TFetchOrientation implements org.apache.thrift.TEnum {
0015   FETCH_NEXT(0),
0016   FETCH_PRIOR(1),
0017   FETCH_RELATIVE(2),
0018   FETCH_ABSOLUTE(3),
0019   FETCH_FIRST(4),
0020   FETCH_LAST(5);
0021 
0022   private final int value;
0023 
0024   private TFetchOrientation(int value) {
0025     this.value = value;
0026   }
0027 
0028   /**
0029    * Get the integer value of this enum value, as defined in the Thrift IDL.
0030    */
0031   public int getValue() {
0032     return value;
0033   }
0034 
0035   /**
0036    * Find a the enum type by its integer value, as defined in the Thrift IDL.
0037    * @return null if the value is not found.
0038    */
0039   public static TFetchOrientation findByValue(int value) { 
0040     switch (value) {
0041       case 0:
0042         return FETCH_NEXT;
0043       case 1:
0044         return FETCH_PRIOR;
0045       case 2:
0046         return FETCH_RELATIVE;
0047       case 3:
0048         return FETCH_ABSOLUTE;
0049       case 4:
0050         return FETCH_FIRST;
0051       case 5:
0052         return FETCH_LAST;
0053       default:
0054         return null;
0055     }
0056   }
0057 }