TStatusCode.java

/**
 * Autogenerated by Thrift Compiler (0.16.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package org.apache.doris.thrift;


@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)", date = "2026-05-14")
public enum TStatusCode implements org.apache.thrift.TEnum {
  OK(0),
  CANCELLED(1),
  ANALYSIS_ERROR(2),
  NOT_IMPLEMENTED_ERROR(3),
  RUNTIME_ERROR(4),
  MEM_LIMIT_EXCEEDED(5),
  INTERNAL_ERROR(6),
  THRIFT_RPC_ERROR(7),
  TIMEOUT(8),
  LIMIT_REACH(9),
  MEM_ALLOC_FAILED(11),
  BUFFER_ALLOCATION_FAILED(12),
  MINIMUM_RESERVATION_UNAVAILABLE(13),
  PUBLISH_TIMEOUT(14),
  LABEL_ALREADY_EXISTS(15),
  TOO_MANY_TASKS(16),
  END_OF_FILE(30),
  NOT_FOUND(31),
  CORRUPTION(32),
  INVALID_ARGUMENT(33),
  IO_ERROR(34),
  ALREADY_EXIST(35),
  NETWORK_ERROR(36),
  ILLEGAL_STATE(37),
  NOT_AUTHORIZED(38),
  ABORTED(39),
  DIRECTORY_NOT_EMPTY(40),
  UNINITIALIZED(42),
  INCOMPLETE(44),
  OLAP_ERR_VERSION_ALREADY_MERGED(45),
  DATA_QUALITY_ERROR(46),
  INVALID_JSON_PATH(47),
  JNI_ERROR(48),
  BINLOG_DISABLE(60),
  BINLOG_TOO_OLD_COMMIT_SEQ(61),
  BINLOG_TOO_NEW_COMMIT_SEQ(62),
  BINLOG_NOT_FOUND_DB(63),
  BINLOG_NOT_FOUND_TABLE(64),
  SNAPSHOT_NOT_EXIST(70),
  HTTP_ERROR(71),
  TABLET_MISSING(72),
  NOT_MASTER(73),
  OBTAIN_LOCK_FAILED(74),
  SNAPSHOT_EXPIRED(75),
  FINISHED(76),
  DELETE_BITMAP_LOCK_ERROR(100),
  SC_COMPACTION_CONFLICT(101);

  private final int value;

  private TStatusCode(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 TStatusCode findByValue(int value) { 
    switch (value) {
      case 0:
        return OK;
      case 1:
        return CANCELLED;
      case 2:
        return ANALYSIS_ERROR;
      case 3:
        return NOT_IMPLEMENTED_ERROR;
      case 4:
        return RUNTIME_ERROR;
      case 5:
        return MEM_LIMIT_EXCEEDED;
      case 6:
        return INTERNAL_ERROR;
      case 7:
        return THRIFT_RPC_ERROR;
      case 8:
        return TIMEOUT;
      case 9:
        return LIMIT_REACH;
      case 11:
        return MEM_ALLOC_FAILED;
      case 12:
        return BUFFER_ALLOCATION_FAILED;
      case 13:
        return MINIMUM_RESERVATION_UNAVAILABLE;
      case 14:
        return PUBLISH_TIMEOUT;
      case 15:
        return LABEL_ALREADY_EXISTS;
      case 16:
        return TOO_MANY_TASKS;
      case 30:
        return END_OF_FILE;
      case 31:
        return NOT_FOUND;
      case 32:
        return CORRUPTION;
      case 33:
        return INVALID_ARGUMENT;
      case 34:
        return IO_ERROR;
      case 35:
        return ALREADY_EXIST;
      case 36:
        return NETWORK_ERROR;
      case 37:
        return ILLEGAL_STATE;
      case 38:
        return NOT_AUTHORIZED;
      case 39:
        return ABORTED;
      case 40:
        return DIRECTORY_NOT_EMPTY;
      case 42:
        return UNINITIALIZED;
      case 44:
        return INCOMPLETE;
      case 45:
        return OLAP_ERR_VERSION_ALREADY_MERGED;
      case 46:
        return DATA_QUALITY_ERROR;
      case 47:
        return INVALID_JSON_PATH;
      case 48:
        return JNI_ERROR;
      case 60:
        return BINLOG_DISABLE;
      case 61:
        return BINLOG_TOO_OLD_COMMIT_SEQ;
      case 62:
        return BINLOG_TOO_NEW_COMMIT_SEQ;
      case 63:
        return BINLOG_NOT_FOUND_DB;
      case 64:
        return BINLOG_NOT_FOUND_TABLE;
      case 70:
        return SNAPSHOT_NOT_EXIST;
      case 71:
        return HTTP_ERROR;
      case 72:
        return TABLET_MISSING;
      case 73:
        return NOT_MASTER;
      case 74:
        return OBTAIN_LOCK_FAILED;
      case 75:
        return SNAPSHOT_EXPIRED;
      case 76:
        return FINISHED;
      case 100:
        return DELETE_BITMAP_LOCK_ERROR;
      case 101:
        return SC_COMPACTION_CONFLICT;
      default:
        return null;
    }
  }
}