TIcebergCommitData.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;

@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)", date = "2026-05-14")
public class TIcebergCommitData implements org.apache.thrift.TBase<TIcebergCommitData, TIcebergCommitData._Fields>, java.io.Serializable, Cloneable, Comparable<TIcebergCommitData> {
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TIcebergCommitData");

  private static final org.apache.thrift.protocol.TField FILE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("file_path", org.apache.thrift.protocol.TType.STRING, (short)1);
  private static final org.apache.thrift.protocol.TField ROW_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("row_count", org.apache.thrift.protocol.TType.I64, (short)2);
  private static final org.apache.thrift.protocol.TField FILE_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("file_size", org.apache.thrift.protocol.TType.I64, (short)3);
  private static final org.apache.thrift.protocol.TField FILE_CONTENT_FIELD_DESC = new org.apache.thrift.protocol.TField("file_content", org.apache.thrift.protocol.TType.I32, (short)4);
  private static final org.apache.thrift.protocol.TField PARTITION_VALUES_FIELD_DESC = new org.apache.thrift.protocol.TField("partition_values", org.apache.thrift.protocol.TType.LIST, (short)5);
  private static final org.apache.thrift.protocol.TField REFERENCED_DATA_FILES_FIELD_DESC = new org.apache.thrift.protocol.TField("referenced_data_files", org.apache.thrift.protocol.TType.LIST, (short)6);
  private static final org.apache.thrift.protocol.TField COLUMN_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("column_stats", org.apache.thrift.protocol.TType.STRUCT, (short)7);
  private static final org.apache.thrift.protocol.TField EQUALITY_FIELD_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("equality_field_ids", org.apache.thrift.protocol.TType.LIST, (short)8);
  private static final org.apache.thrift.protocol.TField REFERENCED_DATA_FILE_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("referenced_data_file_path", org.apache.thrift.protocol.TType.STRING, (short)9);
  private static final org.apache.thrift.protocol.TField PARTITION_SPEC_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("partition_spec_id", org.apache.thrift.protocol.TType.I32, (short)10);
  private static final org.apache.thrift.protocol.TField PARTITION_DATA_JSON_FIELD_DESC = new org.apache.thrift.protocol.TField("partition_data_json", org.apache.thrift.protocol.TType.STRING, (short)11);
  private static final org.apache.thrift.protocol.TField CONTENT_OFFSET_FIELD_DESC = new org.apache.thrift.protocol.TField("content_offset", org.apache.thrift.protocol.TType.I64, (short)12);
  private static final org.apache.thrift.protocol.TField CONTENT_SIZE_IN_BYTES_FIELD_DESC = new org.apache.thrift.protocol.TField("content_size_in_bytes", org.apache.thrift.protocol.TType.I64, (short)13);
  private static final org.apache.thrift.protocol.TField AFFECTED_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("affected_rows", org.apache.thrift.protocol.TType.I64, (short)14);

  private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TIcebergCommitDataStandardSchemeFactory();
  private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TIcebergCommitDataTupleSchemeFactory();

  public @org.apache.thrift.annotation.Nullable java.lang.String file_path; // optional
  public long row_count; // optional
  public long file_size; // optional
  /**
   * 
   * @see TFileContent
   */
  public @org.apache.thrift.annotation.Nullable TFileContent file_content; // optional
  public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> partition_values; // optional
  public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> referenced_data_files; // optional
  public @org.apache.thrift.annotation.Nullable TIcebergColumnStats column_stats; // optional
  public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> equality_field_ids; // optional
  public @org.apache.thrift.annotation.Nullable java.lang.String referenced_data_file_path; // optional
  public int partition_spec_id; // optional
  public @org.apache.thrift.annotation.Nullable java.lang.String partition_data_json; // optional
  public long content_offset; // optional
  public long content_size_in_bytes; // optional
  public long affected_rows; // optional

  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    FILE_PATH((short)1, "file_path"),
    ROW_COUNT((short)2, "row_count"),
    FILE_SIZE((short)3, "file_size"),
    /**
     * 
     * @see TFileContent
     */
    FILE_CONTENT((short)4, "file_content"),
    PARTITION_VALUES((short)5, "partition_values"),
    REFERENCED_DATA_FILES((short)6, "referenced_data_files"),
    COLUMN_STATS((short)7, "column_stats"),
    EQUALITY_FIELD_IDS((short)8, "equality_field_ids"),
    REFERENCED_DATA_FILE_PATH((short)9, "referenced_data_file_path"),
    PARTITION_SPEC_ID((short)10, "partition_spec_id"),
    PARTITION_DATA_JSON((short)11, "partition_data_json"),
    CONTENT_OFFSET((short)12, "content_offset"),
    CONTENT_SIZE_IN_BYTES((short)13, "content_size_in_bytes"),
    AFFECTED_ROWS((short)14, "affected_rows");

    private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();

    static {
      for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
        byName.put(field.getFieldName(), field);
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, or null if its not found.
     */
    @org.apache.thrift.annotation.Nullable
    public static _Fields findByThriftId(int fieldId) {
      switch(fieldId) {
        case 1: // FILE_PATH
          return FILE_PATH;
        case 2: // ROW_COUNT
          return ROW_COUNT;
        case 3: // FILE_SIZE
          return FILE_SIZE;
        case 4: // FILE_CONTENT
          return FILE_CONTENT;
        case 5: // PARTITION_VALUES
          return PARTITION_VALUES;
        case 6: // REFERENCED_DATA_FILES
          return REFERENCED_DATA_FILES;
        case 7: // COLUMN_STATS
          return COLUMN_STATS;
        case 8: // EQUALITY_FIELD_IDS
          return EQUALITY_FIELD_IDS;
        case 9: // REFERENCED_DATA_FILE_PATH
          return REFERENCED_DATA_FILE_PATH;
        case 10: // PARTITION_SPEC_ID
          return PARTITION_SPEC_ID;
        case 11: // PARTITION_DATA_JSON
          return PARTITION_DATA_JSON;
        case 12: // CONTENT_OFFSET
          return CONTENT_OFFSET;
        case 13: // CONTENT_SIZE_IN_BYTES
          return CONTENT_SIZE_IN_BYTES;
        case 14: // AFFECTED_ROWS
          return AFFECTED_ROWS;
        default:
          return null;
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, throwing an exception
     * if it is not found.
     */
    public static _Fields findByThriftIdOrThrow(int fieldId) {
      _Fields fields = findByThriftId(fieldId);
      if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
      return fields;
    }

    /**
     * Find the _Fields constant that matches name, or null if its not found.
     */
    @org.apache.thrift.annotation.Nullable
    public static _Fields findByName(java.lang.String name) {
      return byName.get(name);
    }

    private final short _thriftId;
    private final java.lang.String _fieldName;

    _Fields(short thriftId, java.lang.String fieldName) {
      _thriftId = thriftId;
      _fieldName = fieldName;
    }

    public short getThriftFieldId() {
      return _thriftId;
    }

    public java.lang.String getFieldName() {
      return _fieldName;
    }
  }

  // isset id assignments
  private static final int __ROW_COUNT_ISSET_ID = 0;
  private static final int __FILE_SIZE_ISSET_ID = 1;
  private static final int __PARTITION_SPEC_ID_ISSET_ID = 2;
  private static final int __CONTENT_OFFSET_ISSET_ID = 3;
  private static final int __CONTENT_SIZE_IN_BYTES_ISSET_ID = 4;
  private static final int __AFFECTED_ROWS_ISSET_ID = 5;
  private byte __isset_bitfield = 0;
  private static final _Fields optionals[] = {_Fields.FILE_PATH,_Fields.ROW_COUNT,_Fields.FILE_SIZE,_Fields.FILE_CONTENT,_Fields.PARTITION_VALUES,_Fields.REFERENCED_DATA_FILES,_Fields.COLUMN_STATS,_Fields.EQUALITY_FIELD_IDS,_Fields.REFERENCED_DATA_FILE_PATH,_Fields.PARTITION_SPEC_ID,_Fields.PARTITION_DATA_JSON,_Fields.CONTENT_OFFSET,_Fields.CONTENT_SIZE_IN_BYTES,_Fields.AFFECTED_ROWS};
  public static final java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
  static {
    java.util.Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new java.util.EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    tmpMap.put(_Fields.FILE_PATH, new org.apache.thrift.meta_data.FieldMetaData("file_path", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.ROW_COUNT, new org.apache.thrift.meta_data.FieldMetaData("row_count", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.FILE_SIZE, new org.apache.thrift.meta_data.FieldMetaData("file_size", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.FILE_CONTENT, new org.apache.thrift.meta_data.FieldMetaData("file_content", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TFileContent.class)));
    tmpMap.put(_Fields.PARTITION_VALUES, new org.apache.thrift.meta_data.FieldMetaData("partition_values", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
    tmpMap.put(_Fields.REFERENCED_DATA_FILES, new org.apache.thrift.meta_data.FieldMetaData("referenced_data_files", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
    tmpMap.put(_Fields.COLUMN_STATS, new org.apache.thrift.meta_data.FieldMetaData("column_stats", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TIcebergColumnStats.class)));
    tmpMap.put(_Fields.EQUALITY_FIELD_IDS, new org.apache.thrift.meta_data.FieldMetaData("equality_field_ids", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))));
    tmpMap.put(_Fields.REFERENCED_DATA_FILE_PATH, new org.apache.thrift.meta_data.FieldMetaData("referenced_data_file_path", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.PARTITION_SPEC_ID, new org.apache.thrift.meta_data.FieldMetaData("partition_spec_id", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
    tmpMap.put(_Fields.PARTITION_DATA_JSON, new org.apache.thrift.meta_data.FieldMetaData("partition_data_json", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CONTENT_OFFSET, new org.apache.thrift.meta_data.FieldMetaData("content_offset", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.CONTENT_SIZE_IN_BYTES, new org.apache.thrift.meta_data.FieldMetaData("content_size_in_bytes", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.AFFECTED_ROWS, new org.apache.thrift.meta_data.FieldMetaData("affected_rows", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TIcebergCommitData.class, metaDataMap);
  }

  public TIcebergCommitData() {
  }

  /**
   * Performs a deep copy on <i>other</i>.
   */
  public TIcebergCommitData(TIcebergCommitData other) {
    __isset_bitfield = other.__isset_bitfield;
    if (other.isSetFilePath()) {
      this.file_path = other.file_path;
    }
    this.row_count = other.row_count;
    this.file_size = other.file_size;
    if (other.isSetFileContent()) {
      this.file_content = other.file_content;
    }
    if (other.isSetPartitionValues()) {
      java.util.List<java.lang.String> __this__partition_values = new java.util.ArrayList<java.lang.String>(other.partition_values);
      this.partition_values = __this__partition_values;
    }
    if (other.isSetReferencedDataFiles()) {
      java.util.List<java.lang.String> __this__referenced_data_files = new java.util.ArrayList<java.lang.String>(other.referenced_data_files);
      this.referenced_data_files = __this__referenced_data_files;
    }
    if (other.isSetColumnStats()) {
      this.column_stats = new TIcebergColumnStats(other.column_stats);
    }
    if (other.isSetEqualityFieldIds()) {
      java.util.List<java.lang.Integer> __this__equality_field_ids = new java.util.ArrayList<java.lang.Integer>(other.equality_field_ids);
      this.equality_field_ids = __this__equality_field_ids;
    }
    if (other.isSetReferencedDataFilePath()) {
      this.referenced_data_file_path = other.referenced_data_file_path;
    }
    this.partition_spec_id = other.partition_spec_id;
    if (other.isSetPartitionDataJson()) {
      this.partition_data_json = other.partition_data_json;
    }
    this.content_offset = other.content_offset;
    this.content_size_in_bytes = other.content_size_in_bytes;
    this.affected_rows = other.affected_rows;
  }

  public TIcebergCommitData deepCopy() {
    return new TIcebergCommitData(this);
  }

  @Override
  public void clear() {
    this.file_path = null;
    setRowCountIsSet(false);
    this.row_count = 0;
    setFileSizeIsSet(false);
    this.file_size = 0;
    this.file_content = null;
    this.partition_values = null;
    this.referenced_data_files = null;
    this.column_stats = null;
    this.equality_field_ids = null;
    this.referenced_data_file_path = null;
    setPartitionSpecIdIsSet(false);
    this.partition_spec_id = 0;
    this.partition_data_json = null;
    setContentOffsetIsSet(false);
    this.content_offset = 0;
    setContentSizeInBytesIsSet(false);
    this.content_size_in_bytes = 0;
    setAffectedRowsIsSet(false);
    this.affected_rows = 0;
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getFilePath() {
    return this.file_path;
  }

  public TIcebergCommitData setFilePath(@org.apache.thrift.annotation.Nullable java.lang.String file_path) {
    this.file_path = file_path;
    return this;
  }

  public void unsetFilePath() {
    this.file_path = null;
  }

  /** Returns true if field file_path is set (has been assigned a value) and false otherwise */
  public boolean isSetFilePath() {
    return this.file_path != null;
  }

  public void setFilePathIsSet(boolean value) {
    if (!value) {
      this.file_path = null;
    }
  }

  public long getRowCount() {
    return this.row_count;
  }

  public TIcebergCommitData setRowCount(long row_count) {
    this.row_count = row_count;
    setRowCountIsSet(true);
    return this;
  }

  public void unsetRowCount() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ROW_COUNT_ISSET_ID);
  }

  /** Returns true if field row_count is set (has been assigned a value) and false otherwise */
  public boolean isSetRowCount() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ROW_COUNT_ISSET_ID);
  }

  public void setRowCountIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ROW_COUNT_ISSET_ID, value);
  }

  public long getFileSize() {
    return this.file_size;
  }

  public TIcebergCommitData setFileSize(long file_size) {
    this.file_size = file_size;
    setFileSizeIsSet(true);
    return this;
  }

  public void unsetFileSize() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __FILE_SIZE_ISSET_ID);
  }

  /** Returns true if field file_size is set (has been assigned a value) and false otherwise */
  public boolean isSetFileSize() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __FILE_SIZE_ISSET_ID);
  }

  public void setFileSizeIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __FILE_SIZE_ISSET_ID, value);
  }

  /**
   * 
   * @see TFileContent
   */
  @org.apache.thrift.annotation.Nullable
  public TFileContent getFileContent() {
    return this.file_content;
  }

  /**
   * 
   * @see TFileContent
   */
  public TIcebergCommitData setFileContent(@org.apache.thrift.annotation.Nullable TFileContent file_content) {
    this.file_content = file_content;
    return this;
  }

  public void unsetFileContent() {
    this.file_content = null;
  }

  /** Returns true if field file_content is set (has been assigned a value) and false otherwise */
  public boolean isSetFileContent() {
    return this.file_content != null;
  }

  public void setFileContentIsSet(boolean value) {
    if (!value) {
      this.file_content = null;
    }
  }

  public int getPartitionValuesSize() {
    return (this.partition_values == null) ? 0 : this.partition_values.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator<java.lang.String> getPartitionValuesIterator() {
    return (this.partition_values == null) ? null : this.partition_values.iterator();
  }

  public void addToPartitionValues(java.lang.String elem) {
    if (this.partition_values == null) {
      this.partition_values = new java.util.ArrayList<java.lang.String>();
    }
    this.partition_values.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List<java.lang.String> getPartitionValues() {
    return this.partition_values;
  }

  public TIcebergCommitData setPartitionValues(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> partition_values) {
    this.partition_values = partition_values;
    return this;
  }

  public void unsetPartitionValues() {
    this.partition_values = null;
  }

  /** Returns true if field partition_values is set (has been assigned a value) and false otherwise */
  public boolean isSetPartitionValues() {
    return this.partition_values != null;
  }

  public void setPartitionValuesIsSet(boolean value) {
    if (!value) {
      this.partition_values = null;
    }
  }

  public int getReferencedDataFilesSize() {
    return (this.referenced_data_files == null) ? 0 : this.referenced_data_files.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator<java.lang.String> getReferencedDataFilesIterator() {
    return (this.referenced_data_files == null) ? null : this.referenced_data_files.iterator();
  }

  public void addToReferencedDataFiles(java.lang.String elem) {
    if (this.referenced_data_files == null) {
      this.referenced_data_files = new java.util.ArrayList<java.lang.String>();
    }
    this.referenced_data_files.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List<java.lang.String> getReferencedDataFiles() {
    return this.referenced_data_files;
  }

  public TIcebergCommitData setReferencedDataFiles(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> referenced_data_files) {
    this.referenced_data_files = referenced_data_files;
    return this;
  }

  public void unsetReferencedDataFiles() {
    this.referenced_data_files = null;
  }

  /** Returns true if field referenced_data_files is set (has been assigned a value) and false otherwise */
  public boolean isSetReferencedDataFiles() {
    return this.referenced_data_files != null;
  }

  public void setReferencedDataFilesIsSet(boolean value) {
    if (!value) {
      this.referenced_data_files = null;
    }
  }

  @org.apache.thrift.annotation.Nullable
  public TIcebergColumnStats getColumnStats() {
    return this.column_stats;
  }

  public TIcebergCommitData setColumnStats(@org.apache.thrift.annotation.Nullable TIcebergColumnStats column_stats) {
    this.column_stats = column_stats;
    return this;
  }

  public void unsetColumnStats() {
    this.column_stats = null;
  }

  /** Returns true if field column_stats is set (has been assigned a value) and false otherwise */
  public boolean isSetColumnStats() {
    return this.column_stats != null;
  }

  public void setColumnStatsIsSet(boolean value) {
    if (!value) {
      this.column_stats = null;
    }
  }

  public int getEqualityFieldIdsSize() {
    return (this.equality_field_ids == null) ? 0 : this.equality_field_ids.size();
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.Iterator<java.lang.Integer> getEqualityFieldIdsIterator() {
    return (this.equality_field_ids == null) ? null : this.equality_field_ids.iterator();
  }

  public void addToEqualityFieldIds(int elem) {
    if (this.equality_field_ids == null) {
      this.equality_field_ids = new java.util.ArrayList<java.lang.Integer>();
    }
    this.equality_field_ids.add(elem);
  }

  @org.apache.thrift.annotation.Nullable
  public java.util.List<java.lang.Integer> getEqualityFieldIds() {
    return this.equality_field_ids;
  }

  public TIcebergCommitData setEqualityFieldIds(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> equality_field_ids) {
    this.equality_field_ids = equality_field_ids;
    return this;
  }

  public void unsetEqualityFieldIds() {
    this.equality_field_ids = null;
  }

  /** Returns true if field equality_field_ids is set (has been assigned a value) and false otherwise */
  public boolean isSetEqualityFieldIds() {
    return this.equality_field_ids != null;
  }

  public void setEqualityFieldIdsIsSet(boolean value) {
    if (!value) {
      this.equality_field_ids = null;
    }
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getReferencedDataFilePath() {
    return this.referenced_data_file_path;
  }

  public TIcebergCommitData setReferencedDataFilePath(@org.apache.thrift.annotation.Nullable java.lang.String referenced_data_file_path) {
    this.referenced_data_file_path = referenced_data_file_path;
    return this;
  }

  public void unsetReferencedDataFilePath() {
    this.referenced_data_file_path = null;
  }

  /** Returns true if field referenced_data_file_path is set (has been assigned a value) and false otherwise */
  public boolean isSetReferencedDataFilePath() {
    return this.referenced_data_file_path != null;
  }

  public void setReferencedDataFilePathIsSet(boolean value) {
    if (!value) {
      this.referenced_data_file_path = null;
    }
  }

  public int getPartitionSpecId() {
    return this.partition_spec_id;
  }

  public TIcebergCommitData setPartitionSpecId(int partition_spec_id) {
    this.partition_spec_id = partition_spec_id;
    setPartitionSpecIdIsSet(true);
    return this;
  }

  public void unsetPartitionSpecId() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __PARTITION_SPEC_ID_ISSET_ID);
  }

  /** Returns true if field partition_spec_id is set (has been assigned a value) and false otherwise */
  public boolean isSetPartitionSpecId() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PARTITION_SPEC_ID_ISSET_ID);
  }

  public void setPartitionSpecIdIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PARTITION_SPEC_ID_ISSET_ID, value);
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.String getPartitionDataJson() {
    return this.partition_data_json;
  }

  public TIcebergCommitData setPartitionDataJson(@org.apache.thrift.annotation.Nullable java.lang.String partition_data_json) {
    this.partition_data_json = partition_data_json;
    return this;
  }

  public void unsetPartitionDataJson() {
    this.partition_data_json = null;
  }

  /** Returns true if field partition_data_json is set (has been assigned a value) and false otherwise */
  public boolean isSetPartitionDataJson() {
    return this.partition_data_json != null;
  }

  public void setPartitionDataJsonIsSet(boolean value) {
    if (!value) {
      this.partition_data_json = null;
    }
  }

  public long getContentOffset() {
    return this.content_offset;
  }

  public TIcebergCommitData setContentOffset(long content_offset) {
    this.content_offset = content_offset;
    setContentOffsetIsSet(true);
    return this;
  }

  public void unsetContentOffset() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CONTENT_OFFSET_ISSET_ID);
  }

  /** Returns true if field content_offset is set (has been assigned a value) and false otherwise */
  public boolean isSetContentOffset() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CONTENT_OFFSET_ISSET_ID);
  }

  public void setContentOffsetIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CONTENT_OFFSET_ISSET_ID, value);
  }

  public long getContentSizeInBytes() {
    return this.content_size_in_bytes;
  }

  public TIcebergCommitData setContentSizeInBytes(long content_size_in_bytes) {
    this.content_size_in_bytes = content_size_in_bytes;
    setContentSizeInBytesIsSet(true);
    return this;
  }

  public void unsetContentSizeInBytes() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __CONTENT_SIZE_IN_BYTES_ISSET_ID);
  }

  /** Returns true if field content_size_in_bytes is set (has been assigned a value) and false otherwise */
  public boolean isSetContentSizeInBytes() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __CONTENT_SIZE_IN_BYTES_ISSET_ID);
  }

  public void setContentSizeInBytesIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __CONTENT_SIZE_IN_BYTES_ISSET_ID, value);
  }

  public long getAffectedRows() {
    return this.affected_rows;
  }

  public TIcebergCommitData setAffectedRows(long affected_rows) {
    this.affected_rows = affected_rows;
    setAffectedRowsIsSet(true);
    return this;
  }

  public void unsetAffectedRows() {
    __isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __AFFECTED_ROWS_ISSET_ID);
  }

  /** Returns true if field affected_rows is set (has been assigned a value) and false otherwise */
  public boolean isSetAffectedRows() {
    return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __AFFECTED_ROWS_ISSET_ID);
  }

  public void setAffectedRowsIsSet(boolean value) {
    __isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __AFFECTED_ROWS_ISSET_ID, value);
  }

  public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
    switch (field) {
    case FILE_PATH:
      if (value == null) {
        unsetFilePath();
      } else {
        setFilePath((java.lang.String)value);
      }
      break;

    case ROW_COUNT:
      if (value == null) {
        unsetRowCount();
      } else {
        setRowCount((java.lang.Long)value);
      }
      break;

    case FILE_SIZE:
      if (value == null) {
        unsetFileSize();
      } else {
        setFileSize((java.lang.Long)value);
      }
      break;

    case FILE_CONTENT:
      if (value == null) {
        unsetFileContent();
      } else {
        setFileContent((TFileContent)value);
      }
      break;

    case PARTITION_VALUES:
      if (value == null) {
        unsetPartitionValues();
      } else {
        setPartitionValues((java.util.List<java.lang.String>)value);
      }
      break;

    case REFERENCED_DATA_FILES:
      if (value == null) {
        unsetReferencedDataFiles();
      } else {
        setReferencedDataFiles((java.util.List<java.lang.String>)value);
      }
      break;

    case COLUMN_STATS:
      if (value == null) {
        unsetColumnStats();
      } else {
        setColumnStats((TIcebergColumnStats)value);
      }
      break;

    case EQUALITY_FIELD_IDS:
      if (value == null) {
        unsetEqualityFieldIds();
      } else {
        setEqualityFieldIds((java.util.List<java.lang.Integer>)value);
      }
      break;

    case REFERENCED_DATA_FILE_PATH:
      if (value == null) {
        unsetReferencedDataFilePath();
      } else {
        setReferencedDataFilePath((java.lang.String)value);
      }
      break;

    case PARTITION_SPEC_ID:
      if (value == null) {
        unsetPartitionSpecId();
      } else {
        setPartitionSpecId((java.lang.Integer)value);
      }
      break;

    case PARTITION_DATA_JSON:
      if (value == null) {
        unsetPartitionDataJson();
      } else {
        setPartitionDataJson((java.lang.String)value);
      }
      break;

    case CONTENT_OFFSET:
      if (value == null) {
        unsetContentOffset();
      } else {
        setContentOffset((java.lang.Long)value);
      }
      break;

    case CONTENT_SIZE_IN_BYTES:
      if (value == null) {
        unsetContentSizeInBytes();
      } else {
        setContentSizeInBytes((java.lang.Long)value);
      }
      break;

    case AFFECTED_ROWS:
      if (value == null) {
        unsetAffectedRows();
      } else {
        setAffectedRows((java.lang.Long)value);
      }
      break;

    }
  }

  @org.apache.thrift.annotation.Nullable
  public java.lang.Object getFieldValue(_Fields field) {
    switch (field) {
    case FILE_PATH:
      return getFilePath();

    case ROW_COUNT:
      return getRowCount();

    case FILE_SIZE:
      return getFileSize();

    case FILE_CONTENT:
      return getFileContent();

    case PARTITION_VALUES:
      return getPartitionValues();

    case REFERENCED_DATA_FILES:
      return getReferencedDataFiles();

    case COLUMN_STATS:
      return getColumnStats();

    case EQUALITY_FIELD_IDS:
      return getEqualityFieldIds();

    case REFERENCED_DATA_FILE_PATH:
      return getReferencedDataFilePath();

    case PARTITION_SPEC_ID:
      return getPartitionSpecId();

    case PARTITION_DATA_JSON:
      return getPartitionDataJson();

    case CONTENT_OFFSET:
      return getContentOffset();

    case CONTENT_SIZE_IN_BYTES:
      return getContentSizeInBytes();

    case AFFECTED_ROWS:
      return getAffectedRows();

    }
    throw new java.lang.IllegalStateException();
  }

  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
  public boolean isSet(_Fields field) {
    if (field == null) {
      throw new java.lang.IllegalArgumentException();
    }

    switch (field) {
    case FILE_PATH:
      return isSetFilePath();
    case ROW_COUNT:
      return isSetRowCount();
    case FILE_SIZE:
      return isSetFileSize();
    case FILE_CONTENT:
      return isSetFileContent();
    case PARTITION_VALUES:
      return isSetPartitionValues();
    case REFERENCED_DATA_FILES:
      return isSetReferencedDataFiles();
    case COLUMN_STATS:
      return isSetColumnStats();
    case EQUALITY_FIELD_IDS:
      return isSetEqualityFieldIds();
    case REFERENCED_DATA_FILE_PATH:
      return isSetReferencedDataFilePath();
    case PARTITION_SPEC_ID:
      return isSetPartitionSpecId();
    case PARTITION_DATA_JSON:
      return isSetPartitionDataJson();
    case CONTENT_OFFSET:
      return isSetContentOffset();
    case CONTENT_SIZE_IN_BYTES:
      return isSetContentSizeInBytes();
    case AFFECTED_ROWS:
      return isSetAffectedRows();
    }
    throw new java.lang.IllegalStateException();
  }

  @Override
  public boolean equals(java.lang.Object that) {
    if (that instanceof TIcebergCommitData)
      return this.equals((TIcebergCommitData)that);
    return false;
  }

  public boolean equals(TIcebergCommitData that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_file_path = true && this.isSetFilePath();
    boolean that_present_file_path = true && that.isSetFilePath();
    if (this_present_file_path || that_present_file_path) {
      if (!(this_present_file_path && that_present_file_path))
        return false;
      if (!this.file_path.equals(that.file_path))
        return false;
    }

    boolean this_present_row_count = true && this.isSetRowCount();
    boolean that_present_row_count = true && that.isSetRowCount();
    if (this_present_row_count || that_present_row_count) {
      if (!(this_present_row_count && that_present_row_count))
        return false;
      if (this.row_count != that.row_count)
        return false;
    }

    boolean this_present_file_size = true && this.isSetFileSize();
    boolean that_present_file_size = true && that.isSetFileSize();
    if (this_present_file_size || that_present_file_size) {
      if (!(this_present_file_size && that_present_file_size))
        return false;
      if (this.file_size != that.file_size)
        return false;
    }

    boolean this_present_file_content = true && this.isSetFileContent();
    boolean that_present_file_content = true && that.isSetFileContent();
    if (this_present_file_content || that_present_file_content) {
      if (!(this_present_file_content && that_present_file_content))
        return false;
      if (!this.file_content.equals(that.file_content))
        return false;
    }

    boolean this_present_partition_values = true && this.isSetPartitionValues();
    boolean that_present_partition_values = true && that.isSetPartitionValues();
    if (this_present_partition_values || that_present_partition_values) {
      if (!(this_present_partition_values && that_present_partition_values))
        return false;
      if (!this.partition_values.equals(that.partition_values))
        return false;
    }

    boolean this_present_referenced_data_files = true && this.isSetReferencedDataFiles();
    boolean that_present_referenced_data_files = true && that.isSetReferencedDataFiles();
    if (this_present_referenced_data_files || that_present_referenced_data_files) {
      if (!(this_present_referenced_data_files && that_present_referenced_data_files))
        return false;
      if (!this.referenced_data_files.equals(that.referenced_data_files))
        return false;
    }

    boolean this_present_column_stats = true && this.isSetColumnStats();
    boolean that_present_column_stats = true && that.isSetColumnStats();
    if (this_present_column_stats || that_present_column_stats) {
      if (!(this_present_column_stats && that_present_column_stats))
        return false;
      if (!this.column_stats.equals(that.column_stats))
        return false;
    }

    boolean this_present_equality_field_ids = true && this.isSetEqualityFieldIds();
    boolean that_present_equality_field_ids = true && that.isSetEqualityFieldIds();
    if (this_present_equality_field_ids || that_present_equality_field_ids) {
      if (!(this_present_equality_field_ids && that_present_equality_field_ids))
        return false;
      if (!this.equality_field_ids.equals(that.equality_field_ids))
        return false;
    }

    boolean this_present_referenced_data_file_path = true && this.isSetReferencedDataFilePath();
    boolean that_present_referenced_data_file_path = true && that.isSetReferencedDataFilePath();
    if (this_present_referenced_data_file_path || that_present_referenced_data_file_path) {
      if (!(this_present_referenced_data_file_path && that_present_referenced_data_file_path))
        return false;
      if (!this.referenced_data_file_path.equals(that.referenced_data_file_path))
        return false;
    }

    boolean this_present_partition_spec_id = true && this.isSetPartitionSpecId();
    boolean that_present_partition_spec_id = true && that.isSetPartitionSpecId();
    if (this_present_partition_spec_id || that_present_partition_spec_id) {
      if (!(this_present_partition_spec_id && that_present_partition_spec_id))
        return false;
      if (this.partition_spec_id != that.partition_spec_id)
        return false;
    }

    boolean this_present_partition_data_json = true && this.isSetPartitionDataJson();
    boolean that_present_partition_data_json = true && that.isSetPartitionDataJson();
    if (this_present_partition_data_json || that_present_partition_data_json) {
      if (!(this_present_partition_data_json && that_present_partition_data_json))
        return false;
      if (!this.partition_data_json.equals(that.partition_data_json))
        return false;
    }

    boolean this_present_content_offset = true && this.isSetContentOffset();
    boolean that_present_content_offset = true && that.isSetContentOffset();
    if (this_present_content_offset || that_present_content_offset) {
      if (!(this_present_content_offset && that_present_content_offset))
        return false;
      if (this.content_offset != that.content_offset)
        return false;
    }

    boolean this_present_content_size_in_bytes = true && this.isSetContentSizeInBytes();
    boolean that_present_content_size_in_bytes = true && that.isSetContentSizeInBytes();
    if (this_present_content_size_in_bytes || that_present_content_size_in_bytes) {
      if (!(this_present_content_size_in_bytes && that_present_content_size_in_bytes))
        return false;
      if (this.content_size_in_bytes != that.content_size_in_bytes)
        return false;
    }

    boolean this_present_affected_rows = true && this.isSetAffectedRows();
    boolean that_present_affected_rows = true && that.isSetAffectedRows();
    if (this_present_affected_rows || that_present_affected_rows) {
      if (!(this_present_affected_rows && that_present_affected_rows))
        return false;
      if (this.affected_rows != that.affected_rows)
        return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    int hashCode = 1;

    hashCode = hashCode * 8191 + ((isSetFilePath()) ? 131071 : 524287);
    if (isSetFilePath())
      hashCode = hashCode * 8191 + file_path.hashCode();

    hashCode = hashCode * 8191 + ((isSetRowCount()) ? 131071 : 524287);
    if (isSetRowCount())
      hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(row_count);

    hashCode = hashCode * 8191 + ((isSetFileSize()) ? 131071 : 524287);
    if (isSetFileSize())
      hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(file_size);

    hashCode = hashCode * 8191 + ((isSetFileContent()) ? 131071 : 524287);
    if (isSetFileContent())
      hashCode = hashCode * 8191 + file_content.getValue();

    hashCode = hashCode * 8191 + ((isSetPartitionValues()) ? 131071 : 524287);
    if (isSetPartitionValues())
      hashCode = hashCode * 8191 + partition_values.hashCode();

    hashCode = hashCode * 8191 + ((isSetReferencedDataFiles()) ? 131071 : 524287);
    if (isSetReferencedDataFiles())
      hashCode = hashCode * 8191 + referenced_data_files.hashCode();

    hashCode = hashCode * 8191 + ((isSetColumnStats()) ? 131071 : 524287);
    if (isSetColumnStats())
      hashCode = hashCode * 8191 + column_stats.hashCode();

    hashCode = hashCode * 8191 + ((isSetEqualityFieldIds()) ? 131071 : 524287);
    if (isSetEqualityFieldIds())
      hashCode = hashCode * 8191 + equality_field_ids.hashCode();

    hashCode = hashCode * 8191 + ((isSetReferencedDataFilePath()) ? 131071 : 524287);
    if (isSetReferencedDataFilePath())
      hashCode = hashCode * 8191 + referenced_data_file_path.hashCode();

    hashCode = hashCode * 8191 + ((isSetPartitionSpecId()) ? 131071 : 524287);
    if (isSetPartitionSpecId())
      hashCode = hashCode * 8191 + partition_spec_id;

    hashCode = hashCode * 8191 + ((isSetPartitionDataJson()) ? 131071 : 524287);
    if (isSetPartitionDataJson())
      hashCode = hashCode * 8191 + partition_data_json.hashCode();

    hashCode = hashCode * 8191 + ((isSetContentOffset()) ? 131071 : 524287);
    if (isSetContentOffset())
      hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(content_offset);

    hashCode = hashCode * 8191 + ((isSetContentSizeInBytes()) ? 131071 : 524287);
    if (isSetContentSizeInBytes())
      hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(content_size_in_bytes);

    hashCode = hashCode * 8191 + ((isSetAffectedRows()) ? 131071 : 524287);
    if (isSetAffectedRows())
      hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(affected_rows);

    return hashCode;
  }

  @Override
  public int compareTo(TIcebergCommitData other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;

    lastComparison = java.lang.Boolean.compare(isSetFilePath(), other.isSetFilePath());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetFilePath()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.file_path, other.file_path);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetRowCount(), other.isSetRowCount());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetRowCount()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.row_count, other.row_count);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetFileSize(), other.isSetFileSize());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetFileSize()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.file_size, other.file_size);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetFileContent(), other.isSetFileContent());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetFileContent()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.file_content, other.file_content);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetPartitionValues(), other.isSetPartitionValues());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPartitionValues()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partition_values, other.partition_values);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetReferencedDataFiles(), other.isSetReferencedDataFiles());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetReferencedDataFiles()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenced_data_files, other.referenced_data_files);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetColumnStats(), other.isSetColumnStats());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetColumnStats()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_stats, other.column_stats);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetEqualityFieldIds(), other.isSetEqualityFieldIds());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetEqualityFieldIds()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.equality_field_ids, other.equality_field_ids);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetReferencedDataFilePath(), other.isSetReferencedDataFilePath());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetReferencedDataFilePath()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenced_data_file_path, other.referenced_data_file_path);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetPartitionSpecId(), other.isSetPartitionSpecId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPartitionSpecId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partition_spec_id, other.partition_spec_id);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetPartitionDataJson(), other.isSetPartitionDataJson());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPartitionDataJson()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partition_data_json, other.partition_data_json);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetContentOffset(), other.isSetContentOffset());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetContentOffset()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.content_offset, other.content_offset);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetContentSizeInBytes(), other.isSetContentSizeInBytes());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetContentSizeInBytes()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.content_size_in_bytes, other.content_size_in_bytes);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetAffectedRows(), other.isSetAffectedRows());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetAffectedRows()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affected_rows, other.affected_rows);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }

  @org.apache.thrift.annotation.Nullable
  public _Fields fieldForId(int fieldId) {
    return _Fields.findByThriftId(fieldId);
  }

  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    scheme(iprot).read(iprot, this);
  }

  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    scheme(oprot).write(oprot, this);
  }

  @Override
  public java.lang.String toString() {
    java.lang.StringBuilder sb = new java.lang.StringBuilder("TIcebergCommitData(");
    boolean first = true;

    if (isSetFilePath()) {
      sb.append("file_path:");
      if (this.file_path == null) {
        sb.append("null");
      } else {
        sb.append(this.file_path);
      }
      first = false;
    }
    if (isSetRowCount()) {
      if (!first) sb.append(", ");
      sb.append("row_count:");
      sb.append(this.row_count);
      first = false;
    }
    if (isSetFileSize()) {
      if (!first) sb.append(", ");
      sb.append("file_size:");
      sb.append(this.file_size);
      first = false;
    }
    if (isSetFileContent()) {
      if (!first) sb.append(", ");
      sb.append("file_content:");
      if (this.file_content == null) {
        sb.append("null");
      } else {
        sb.append(this.file_content);
      }
      first = false;
    }
    if (isSetPartitionValues()) {
      if (!first) sb.append(", ");
      sb.append("partition_values:");
      if (this.partition_values == null) {
        sb.append("null");
      } else {
        sb.append(this.partition_values);
      }
      first = false;
    }
    if (isSetReferencedDataFiles()) {
      if (!first) sb.append(", ");
      sb.append("referenced_data_files:");
      if (this.referenced_data_files == null) {
        sb.append("null");
      } else {
        sb.append(this.referenced_data_files);
      }
      first = false;
    }
    if (isSetColumnStats()) {
      if (!first) sb.append(", ");
      sb.append("column_stats:");
      if (this.column_stats == null) {
        sb.append("null");
      } else {
        sb.append(this.column_stats);
      }
      first = false;
    }
    if (isSetEqualityFieldIds()) {
      if (!first) sb.append(", ");
      sb.append("equality_field_ids:");
      if (this.equality_field_ids == null) {
        sb.append("null");
      } else {
        sb.append(this.equality_field_ids);
      }
      first = false;
    }
    if (isSetReferencedDataFilePath()) {
      if (!first) sb.append(", ");
      sb.append("referenced_data_file_path:");
      if (this.referenced_data_file_path == null) {
        sb.append("null");
      } else {
        sb.append(this.referenced_data_file_path);
      }
      first = false;
    }
    if (isSetPartitionSpecId()) {
      if (!first) sb.append(", ");
      sb.append("partition_spec_id:");
      sb.append(this.partition_spec_id);
      first = false;
    }
    if (isSetPartitionDataJson()) {
      if (!first) sb.append(", ");
      sb.append("partition_data_json:");
      if (this.partition_data_json == null) {
        sb.append("null");
      } else {
        sb.append(this.partition_data_json);
      }
      first = false;
    }
    if (isSetContentOffset()) {
      if (!first) sb.append(", ");
      sb.append("content_offset:");
      sb.append(this.content_offset);
      first = false;
    }
    if (isSetContentSizeInBytes()) {
      if (!first) sb.append(", ");
      sb.append("content_size_in_bytes:");
      sb.append(this.content_size_in_bytes);
      first = false;
    }
    if (isSetAffectedRows()) {
      if (!first) sb.append(", ");
      sb.append("affected_rows:");
      sb.append(this.affected_rows);
      first = false;
    }
    sb.append(")");
    return sb.toString();
  }

  public void validate() throws org.apache.thrift.TException {
    // check for required fields
    // check for sub-struct validity
    if (column_stats != null) {
      column_stats.validate();
    }
  }

  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    try {
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    } catch (org.apache.thrift.TException te) {
      throw new java.io.IOException(te);
    }
  }

  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
    try {
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
      __isset_bitfield = 0;
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
      throw new java.io.IOException(te);
    }
  }

  private static class TIcebergCommitDataStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    public TIcebergCommitDataStandardScheme getScheme() {
      return new TIcebergCommitDataStandardScheme();
    }
  }

  private static class TIcebergCommitDataStandardScheme extends org.apache.thrift.scheme.StandardScheme<TIcebergCommitData> {

    public void read(org.apache.thrift.protocol.TProtocol iprot, TIcebergCommitData struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TField schemeField;
      iprot.readStructBegin();
      while (true)
      {
        schemeField = iprot.readFieldBegin();
        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 
          break;
        }
        switch (schemeField.id) {
          case 1: // FILE_PATH
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.file_path = iprot.readString();
              struct.setFilePathIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 2: // ROW_COUNT
            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
              struct.row_count = iprot.readI64();
              struct.setRowCountIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 3: // FILE_SIZE
            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
              struct.file_size = iprot.readI64();
              struct.setFileSizeIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 4: // FILE_CONTENT
            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
              struct.file_content = org.apache.doris.thrift.TFileContent.findByValue(iprot.readI32());
              struct.setFileContentIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 5: // PARTITION_VALUES
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list278 = iprot.readListBegin();
                struct.partition_values = new java.util.ArrayList<java.lang.String>(_list278.size);
                @org.apache.thrift.annotation.Nullable java.lang.String _elem279;
                for (int _i280 = 0; _i280 < _list278.size; ++_i280)
                {
                  _elem279 = iprot.readString();
                  struct.partition_values.add(_elem279);
                }
                iprot.readListEnd();
              }
              struct.setPartitionValuesIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 6: // REFERENCED_DATA_FILES
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list281 = iprot.readListBegin();
                struct.referenced_data_files = new java.util.ArrayList<java.lang.String>(_list281.size);
                @org.apache.thrift.annotation.Nullable java.lang.String _elem282;
                for (int _i283 = 0; _i283 < _list281.size; ++_i283)
                {
                  _elem282 = iprot.readString();
                  struct.referenced_data_files.add(_elem282);
                }
                iprot.readListEnd();
              }
              struct.setReferencedDataFilesIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 7: // COLUMN_STATS
            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
              struct.column_stats = new TIcebergColumnStats();
              struct.column_stats.read(iprot);
              struct.setColumnStatsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 8: // EQUALITY_FIELD_IDS
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list284 = iprot.readListBegin();
                struct.equality_field_ids = new java.util.ArrayList<java.lang.Integer>(_list284.size);
                int _elem285;
                for (int _i286 = 0; _i286 < _list284.size; ++_i286)
                {
                  _elem285 = iprot.readI32();
                  struct.equality_field_ids.add(_elem285);
                }
                iprot.readListEnd();
              }
              struct.setEqualityFieldIdsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 9: // REFERENCED_DATA_FILE_PATH
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.referenced_data_file_path = iprot.readString();
              struct.setReferencedDataFilePathIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 10: // PARTITION_SPEC_ID
            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
              struct.partition_spec_id = iprot.readI32();
              struct.setPartitionSpecIdIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 11: // PARTITION_DATA_JSON
            if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
              struct.partition_data_json = iprot.readString();
              struct.setPartitionDataJsonIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 12: // CONTENT_OFFSET
            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
              struct.content_offset = iprot.readI64();
              struct.setContentOffsetIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 13: // CONTENT_SIZE_IN_BYTES
            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
              struct.content_size_in_bytes = iprot.readI64();
              struct.setContentSizeInBytesIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 14: // AFFECTED_ROWS
            if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
              struct.affected_rows = iprot.readI64();
              struct.setAffectedRowsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          default:
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
        }
        iprot.readFieldEnd();
      }
      iprot.readStructEnd();

      // check for required fields of primitive type, which can't be checked in the validate method
      struct.validate();
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot, TIcebergCommitData struct) throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.file_path != null) {
        if (struct.isSetFilePath()) {
          oprot.writeFieldBegin(FILE_PATH_FIELD_DESC);
          oprot.writeString(struct.file_path);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetRowCount()) {
        oprot.writeFieldBegin(ROW_COUNT_FIELD_DESC);
        oprot.writeI64(struct.row_count);
        oprot.writeFieldEnd();
      }
      if (struct.isSetFileSize()) {
        oprot.writeFieldBegin(FILE_SIZE_FIELD_DESC);
        oprot.writeI64(struct.file_size);
        oprot.writeFieldEnd();
      }
      if (struct.file_content != null) {
        if (struct.isSetFileContent()) {
          oprot.writeFieldBegin(FILE_CONTENT_FIELD_DESC);
          oprot.writeI32(struct.file_content.getValue());
          oprot.writeFieldEnd();
        }
      }
      if (struct.partition_values != null) {
        if (struct.isSetPartitionValues()) {
          oprot.writeFieldBegin(PARTITION_VALUES_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partition_values.size()));
            for (java.lang.String _iter287 : struct.partition_values)
            {
              oprot.writeString(_iter287);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.referenced_data_files != null) {
        if (struct.isSetReferencedDataFiles()) {
          oprot.writeFieldBegin(REFERENCED_DATA_FILES_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.referenced_data_files.size()));
            for (java.lang.String _iter288 : struct.referenced_data_files)
            {
              oprot.writeString(_iter288);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.column_stats != null) {
        if (struct.isSetColumnStats()) {
          oprot.writeFieldBegin(COLUMN_STATS_FIELD_DESC);
          struct.column_stats.write(oprot);
          oprot.writeFieldEnd();
        }
      }
      if (struct.equality_field_ids != null) {
        if (struct.isSetEqualityFieldIds()) {
          oprot.writeFieldBegin(EQUALITY_FIELD_IDS_FIELD_DESC);
          {
            oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.equality_field_ids.size()));
            for (int _iter289 : struct.equality_field_ids)
            {
              oprot.writeI32(_iter289);
            }
            oprot.writeListEnd();
          }
          oprot.writeFieldEnd();
        }
      }
      if (struct.referenced_data_file_path != null) {
        if (struct.isSetReferencedDataFilePath()) {
          oprot.writeFieldBegin(REFERENCED_DATA_FILE_PATH_FIELD_DESC);
          oprot.writeString(struct.referenced_data_file_path);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetPartitionSpecId()) {
        oprot.writeFieldBegin(PARTITION_SPEC_ID_FIELD_DESC);
        oprot.writeI32(struct.partition_spec_id);
        oprot.writeFieldEnd();
      }
      if (struct.partition_data_json != null) {
        if (struct.isSetPartitionDataJson()) {
          oprot.writeFieldBegin(PARTITION_DATA_JSON_FIELD_DESC);
          oprot.writeString(struct.partition_data_json);
          oprot.writeFieldEnd();
        }
      }
      if (struct.isSetContentOffset()) {
        oprot.writeFieldBegin(CONTENT_OFFSET_FIELD_DESC);
        oprot.writeI64(struct.content_offset);
        oprot.writeFieldEnd();
      }
      if (struct.isSetContentSizeInBytes()) {
        oprot.writeFieldBegin(CONTENT_SIZE_IN_BYTES_FIELD_DESC);
        oprot.writeI64(struct.content_size_in_bytes);
        oprot.writeFieldEnd();
      }
      if (struct.isSetAffectedRows()) {
        oprot.writeFieldBegin(AFFECTED_ROWS_FIELD_DESC);
        oprot.writeI64(struct.affected_rows);
        oprot.writeFieldEnd();
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }

  }

  private static class TIcebergCommitDataTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    public TIcebergCommitDataTupleScheme getScheme() {
      return new TIcebergCommitDataTupleScheme();
    }
  }

  private static class TIcebergCommitDataTupleScheme extends org.apache.thrift.scheme.TupleScheme<TIcebergCommitData> {

    @Override
    public void write(org.apache.thrift.protocol.TProtocol prot, TIcebergCommitData struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      java.util.BitSet optionals = new java.util.BitSet();
      if (struct.isSetFilePath()) {
        optionals.set(0);
      }
      if (struct.isSetRowCount()) {
        optionals.set(1);
      }
      if (struct.isSetFileSize()) {
        optionals.set(2);
      }
      if (struct.isSetFileContent()) {
        optionals.set(3);
      }
      if (struct.isSetPartitionValues()) {
        optionals.set(4);
      }
      if (struct.isSetReferencedDataFiles()) {
        optionals.set(5);
      }
      if (struct.isSetColumnStats()) {
        optionals.set(6);
      }
      if (struct.isSetEqualityFieldIds()) {
        optionals.set(7);
      }
      if (struct.isSetReferencedDataFilePath()) {
        optionals.set(8);
      }
      if (struct.isSetPartitionSpecId()) {
        optionals.set(9);
      }
      if (struct.isSetPartitionDataJson()) {
        optionals.set(10);
      }
      if (struct.isSetContentOffset()) {
        optionals.set(11);
      }
      if (struct.isSetContentSizeInBytes()) {
        optionals.set(12);
      }
      if (struct.isSetAffectedRows()) {
        optionals.set(13);
      }
      oprot.writeBitSet(optionals, 14);
      if (struct.isSetFilePath()) {
        oprot.writeString(struct.file_path);
      }
      if (struct.isSetRowCount()) {
        oprot.writeI64(struct.row_count);
      }
      if (struct.isSetFileSize()) {
        oprot.writeI64(struct.file_size);
      }
      if (struct.isSetFileContent()) {
        oprot.writeI32(struct.file_content.getValue());
      }
      if (struct.isSetPartitionValues()) {
        {
          oprot.writeI32(struct.partition_values.size());
          for (java.lang.String _iter290 : struct.partition_values)
          {
            oprot.writeString(_iter290);
          }
        }
      }
      if (struct.isSetReferencedDataFiles()) {
        {
          oprot.writeI32(struct.referenced_data_files.size());
          for (java.lang.String _iter291 : struct.referenced_data_files)
          {
            oprot.writeString(_iter291);
          }
        }
      }
      if (struct.isSetColumnStats()) {
        struct.column_stats.write(oprot);
      }
      if (struct.isSetEqualityFieldIds()) {
        {
          oprot.writeI32(struct.equality_field_ids.size());
          for (int _iter292 : struct.equality_field_ids)
          {
            oprot.writeI32(_iter292);
          }
        }
      }
      if (struct.isSetReferencedDataFilePath()) {
        oprot.writeString(struct.referenced_data_file_path);
      }
      if (struct.isSetPartitionSpecId()) {
        oprot.writeI32(struct.partition_spec_id);
      }
      if (struct.isSetPartitionDataJson()) {
        oprot.writeString(struct.partition_data_json);
      }
      if (struct.isSetContentOffset()) {
        oprot.writeI64(struct.content_offset);
      }
      if (struct.isSetContentSizeInBytes()) {
        oprot.writeI64(struct.content_size_in_bytes);
      }
      if (struct.isSetAffectedRows()) {
        oprot.writeI64(struct.affected_rows);
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, TIcebergCommitData struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      java.util.BitSet incoming = iprot.readBitSet(14);
      if (incoming.get(0)) {
        struct.file_path = iprot.readString();
        struct.setFilePathIsSet(true);
      }
      if (incoming.get(1)) {
        struct.row_count = iprot.readI64();
        struct.setRowCountIsSet(true);
      }
      if (incoming.get(2)) {
        struct.file_size = iprot.readI64();
        struct.setFileSizeIsSet(true);
      }
      if (incoming.get(3)) {
        struct.file_content = org.apache.doris.thrift.TFileContent.findByValue(iprot.readI32());
        struct.setFileContentIsSet(true);
      }
      if (incoming.get(4)) {
        {
          org.apache.thrift.protocol.TList _list293 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
          struct.partition_values = new java.util.ArrayList<java.lang.String>(_list293.size);
          @org.apache.thrift.annotation.Nullable java.lang.String _elem294;
          for (int _i295 = 0; _i295 < _list293.size; ++_i295)
          {
            _elem294 = iprot.readString();
            struct.partition_values.add(_elem294);
          }
        }
        struct.setPartitionValuesIsSet(true);
      }
      if (incoming.get(5)) {
        {
          org.apache.thrift.protocol.TList _list296 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
          struct.referenced_data_files = new java.util.ArrayList<java.lang.String>(_list296.size);
          @org.apache.thrift.annotation.Nullable java.lang.String _elem297;
          for (int _i298 = 0; _i298 < _list296.size; ++_i298)
          {
            _elem297 = iprot.readString();
            struct.referenced_data_files.add(_elem297);
          }
        }
        struct.setReferencedDataFilesIsSet(true);
      }
      if (incoming.get(6)) {
        struct.column_stats = new TIcebergColumnStats();
        struct.column_stats.read(iprot);
        struct.setColumnStatsIsSet(true);
      }
      if (incoming.get(7)) {
        {
          org.apache.thrift.protocol.TList _list299 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
          struct.equality_field_ids = new java.util.ArrayList<java.lang.Integer>(_list299.size);
          int _elem300;
          for (int _i301 = 0; _i301 < _list299.size; ++_i301)
          {
            _elem300 = iprot.readI32();
            struct.equality_field_ids.add(_elem300);
          }
        }
        struct.setEqualityFieldIdsIsSet(true);
      }
      if (incoming.get(8)) {
        struct.referenced_data_file_path = iprot.readString();
        struct.setReferencedDataFilePathIsSet(true);
      }
      if (incoming.get(9)) {
        struct.partition_spec_id = iprot.readI32();
        struct.setPartitionSpecIdIsSet(true);
      }
      if (incoming.get(10)) {
        struct.partition_data_json = iprot.readString();
        struct.setPartitionDataJsonIsSet(true);
      }
      if (incoming.get(11)) {
        struct.content_offset = iprot.readI64();
        struct.setContentOffsetIsSet(true);
      }
      if (incoming.get(12)) {
        struct.content_size_in_bytes = iprot.readI64();
        struct.setContentSizeInBytesIsSet(true);
      }
      if (incoming.get(13)) {
        struct.affected_rows = iprot.readI64();
        struct.setAffectedRowsIsSet(true);
      }
    }
  }

  private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
    return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
  }
}