All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xiaomi.infra.galaxy.sds.thrift.TableState Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
/**
 * Autogenerated by Thrift Compiler (0.9.2)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package com.xiaomi.infra.galaxy.sds.thrift;


import java.util.Map;
import java.util.HashMap;
import libthrift091.TEnum;

/**
 * 表状态
 */
public enum TableState implements libthrift091.TEnum {
  /**
   * 正在创建,不可操作
   */
  CREATING(1),
  /**
   * 正在开启,不可操作
   */
  ENABLING(2),
  /**
   * 开启状态,可读写
   */
  ENABLED(3),
  /**
   * 正在关闭,不可操作
   */
  DISABLING(4),
  /**
   * 关闭状态,不可读写
   */
  DISABLED(5),
  /**
   * 正在删除,不可操作
   */
  DELETING(6),
  /**
   * 已删除,不可见
   */
  DELETED(7),
  /**
   * 延迟删除, 可见
   */
  LAZY_DELETE(8);

  private final int value;

  private TableState(int value) {
    this.value = value;
  }

  /**
   * Get the integer value of this enum value, as defined in the Thrift IDL.
   */
  public int getValue() {
    return value;
  }

  /**
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
   * @return null if the value is not found.
   */
  public static TableState findByValue(int value) { 
    switch (value) {
      case 1:
        return CREATING;
      case 2:
        return ENABLING;
      case 3:
        return ENABLED;
      case 4:
        return DISABLING;
      case 5:
        return DISABLED;
      case 6:
        return DELETING;
      case 7:
        return DELETED;
      case 8:
        return LAZY_DELETE;
      default:
        return null;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy