/**
* 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 OperatorType implements libthrift091.TEnum {
/**
* 等于
*/
EQUAL(1),
/**
* 不等于
*/
NOT_EQUAL(2),
/**
* 大于
*/
GREATER(3),
/**
* 大于等于
*/
GREATER_OR_EQUAL(4),
/**
* 小于
*/
LESS(5),
/**
* 小于等于
*/
LESS_OR_EQUAL(6);
private final int value;
private OperatorType(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 OperatorType findByValue(int value) {
switch (value) {
case 1:
return EQUAL;
case 2:
return NOT_EQUAL;
case 3:
return GREATER;
case 4:
return GREATER_OR_EQUAL;
case 5:
return LESS;
case 6:
return LESS_OR_EQUAL;
default:
return null;
}
}
}