org.apache.hudi.metaserver.thrift.TState Maven / Gradle / Ivy
/**
* Autogenerated by Thrift Compiler (0.12.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hudi.metaserver.thrift;
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.12.0)", date = "2023-09-27")
public enum TState implements org.apache.thrift.TEnum {
REQUESTED(1),
INFLIGHT(2),
COMPLETED(3),
NIL(4);
private final int value;
private TState(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.
*/
@org.apache.thrift.annotation.Nullable
public static TState findByValue(int value) {
switch (value) {
case 1:
return REQUESTED;
case 2:
return INFLIGHT;
case 3:
return COMPLETED;
case 4:
return NIL;
default:
return null;
}
}
}