@org.apache.thrift.annotation.Nullable
    public static _Fields findByThriftId(int fieldId) {
      switch(fieldId) {
        case 1: // DBNAME
          return DBNAME;
        case 2: // TABLENAME
          return TABLENAME;
        case 3: // PARTITIONNAME
          return PARTITIONNAME;
        case 4: // TYPE
          return TYPE;
        case 5: // STATE
          return STATE;
        case 6: // WORKERID
          return WORKERID;
        case 7: // START
          return START;
        case 8: // RUN_AS
          return RUN_AS;
        case 9: // HIGHTEST_TXN_ID
          return HIGHTEST_TXN_ID;
        case 10: // META_INFO
          return META_INFO;
        case 11: // END_TIME
          return END_TIME;
        case 12: // HADOOP_JOB_ID
          return HADOOP_JOB_ID;
        case 13: // ID
          return ID;
        case 14: // ERROR_MESSAGE
          return ERROR_MESSAGE;
        case 15: // ENQUEUE_TIME
          return ENQUEUE_TIME;
        case 16: // WORKER_VERSION
          return WORKER_VERSION;
        case 17: // INITIATOR_ID
          return INITIATOR_ID;
        case 18: // INITIATOR_VERSION
          return INITIATOR_VERSION;
        case 19: // CLEANER_START
          return CLEANER_START;
        case 20: // POOL_NAME
          return POOL_NAME;
        case 21: // NEXT_TXN_ID
          return NEXT_TXN_ID;
        case 22: // TXN_ID
          return TXN_ID;
        case 23: // COMMIT_TIME
          return COMMIT_TIME;
        case 24: // HIGHTEST_WRITE_ID
          return HIGHTEST_WRITE_ID;
        default:
          return null;
      }
    }
Find the _Fields constant that matches fieldId, or null if its not found.
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponseElement.java