com.xiaomi.infra.galaxy.emr.thrift.Mesurement Maven / Gradle / Ivy
/**
* 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.emr.thrift;
import java.util.Map;
import java.util.HashMap;
import libthrift091.TEnum;
public enum Mesurement implements libthrift091.TEnum {
COUNT(0),
MAX(1),
MIN(2),
MEAN(3),
P50(4),
P75(5),
P95(6),
P98(7),
P99(8),
P999(9),
STDDEV(10),
M1_RATE(11),
M5_RATE(12),
M15_RATE(13),
MEAN_RATE(14);
private final int value;
private Mesurement(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 Mesurement findByValue(int value) {
switch (value) {
case 0:
return COUNT;
case 1:
return MAX;
case 2:
return MIN;
case 3:
return MEAN;
case 4:
return P50;
case 5:
return P75;
case 6:
return P95;
case 7:
return P98;
case 8:
return P99;
case 9:
return P999;
case 10:
return STDDEV;
case 11:
return M1_RATE;
case 12:
return M5_RATE;
case 13:
return M15_RATE;
case 14:
return MEAN_RATE;
default:
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy