View Javadoc

1   /**
2    * Autogenerated by Thrift Compiler (0.8.0)
3    *
4    * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5    *  @generated
6    */
7   package org.apache.hadoop.hbase.thrift2.generated;
8   
9   
10  import java.util.Map;
11  import java.util.HashMap;
12  import org.apache.thrift.TEnum;
13  
14  /**
15   * Specify type of delete:
16   *  - DELETE_COLUMN means exactly one version will be removed,
17   *  - DELETE_COLUMNS means previous versions will also be removed.
18   */
19  public enum TDeleteType implements org.apache.thrift.TEnum {
20    DELETE_COLUMN(0),
21    DELETE_COLUMNS(1);
22  
23    private final int value;
24  
25    private TDeleteType(int value) {
26      this.value = value;
27    }
28  
29    /**
30     * Get the integer value of this enum value, as defined in the Thrift IDL.
31     */
32    public int getValue() {
33      return value;
34    }
35  
36    /**
37     * Find a the enum type by its integer value, as defined in the Thrift IDL.
38     * @return null if the value is not found.
39     */
40    public static TDeleteType findByValue(int value) { 
41      switch (value) {
42        case 0:
43          return DELETE_COLUMN;
44        case 1:
45          return DELETE_COLUMNS;
46        default:
47          return null;
48      }
49    }
50  }