@org.apache.thrift.annotation.Nullable
    public static _Fields findByThriftId(int fieldId) {
      switch(fieldId) {
        case 1: // PKTABLE_DB
          return PKTABLE_DB;
        case 2: // PKTABLE_NAME
          return PKTABLE_NAME;
        case 3: // PKCOLUMN_NAME
          return PKCOLUMN_NAME;
        case 4: // FKTABLE_DB
          return FKTABLE_DB;
        case 5: // FKTABLE_NAME
          return FKTABLE_NAME;
        case 6: // FKCOLUMN_NAME
          return FKCOLUMN_NAME;
        case 7: // KEY_SEQ
          return KEY_SEQ;
        case 8: // UPDATE_RULE
          return UPDATE_RULE;
        case 9: // DELETE_RULE
          return DELETE_RULE;
        case 10: // FK_NAME
          return FK_NAME;
        case 11: // PK_NAME
          return PK_NAME;
        case 12: // ENABLE_CSTR
          return ENABLE_CSTR;
        case 13: // VALIDATE_CSTR
          return VALIDATE_CSTR;
        case 14: // RELY_CSTR
          return RELY_CSTR;
        case 15: // CAT_NAME
          return CAT_NAME;
        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/SQLForeignKey.java