/** * 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 SecondaryIndexConsistencyMode implements libthrift091.TEnum { /** * 读取时判断索引一致性,此模式不能进行属性projection */ LAZY(0), /** * 写入时保持索引一致性 */ EAGER(1), /** * 适用于只读数据,写入后不再修改,写入时采用LAZY方式,读 * 取时采用EAGER方式 */ IMMUTABLE(2); private final int value; private SecondaryIndexConsistencyMode(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 SecondaryIndexConsistencyMode findByValue(int value) { switch (value) { case 0: return LAZY; case 1: return EAGER; case 2: return IMMUTABLE; default: return null; } } }