TIcebergRewritableDeleteFileSet.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 TIcebergRewritableDeleteFileSet implements org.apache.thrift.TBase<TIcebergRewritableDeleteFileSet, TIcebergRewritableDeleteFileSet._Fields>, java.io.Serializable, Cloneable, Comparable<TIcebergRewritableDeleteFileSet> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TIcebergRewritableDeleteFileSet");
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)1);
private static final org.apache.thrift.protocol.TField DELETE_FILES_FIELD_DESC = new org.apache.thrift.protocol.TField("delete_files", org.apache.thrift.protocol.TType.LIST, (short)2);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TIcebergRewritableDeleteFileSetStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TIcebergRewritableDeleteFileSetTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.lang.String referenced_data_file_path; // optional
public @org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TIcebergDeleteFileDesc> delete_files; // 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 {
REFERENCED_DATA_FILE_PATH((short)1, "referenced_data_file_path"),
DELETE_FILES((short)2, "delete_files");
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: // REFERENCED_DATA_FILE_PATH
return REFERENCED_DATA_FILE_PATH;
case 2: // DELETE_FILES
return DELETE_FILES;
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 _Fields optionals[] = {_Fields.REFERENCED_DATA_FILE_PATH,_Fields.DELETE_FILES};
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.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.DELETE_FILES, new org.apache.thrift.meta_data.FieldMetaData("delete_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.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.doris.thrift.TIcebergDeleteFileDesc.class))));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TIcebergRewritableDeleteFileSet.class, metaDataMap);
}
public TIcebergRewritableDeleteFileSet() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TIcebergRewritableDeleteFileSet(TIcebergRewritableDeleteFileSet other) {
if (other.isSetReferencedDataFilePath()) {
this.referenced_data_file_path = other.referenced_data_file_path;
}
if (other.isSetDeleteFiles()) {
java.util.List<org.apache.doris.thrift.TIcebergDeleteFileDesc> __this__delete_files = new java.util.ArrayList<org.apache.doris.thrift.TIcebergDeleteFileDesc>(other.delete_files.size());
for (org.apache.doris.thrift.TIcebergDeleteFileDesc other_element : other.delete_files) {
__this__delete_files.add(new org.apache.doris.thrift.TIcebergDeleteFileDesc(other_element));
}
this.delete_files = __this__delete_files;
}
}
public TIcebergRewritableDeleteFileSet deepCopy() {
return new TIcebergRewritableDeleteFileSet(this);
}
@Override
public void clear() {
this.referenced_data_file_path = null;
this.delete_files = null;
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getReferencedDataFilePath() {
return this.referenced_data_file_path;
}
public TIcebergRewritableDeleteFileSet 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 getDeleteFilesSize() {
return (this.delete_files == null) ? 0 : this.delete_files.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<org.apache.doris.thrift.TIcebergDeleteFileDesc> getDeleteFilesIterator() {
return (this.delete_files == null) ? null : this.delete_files.iterator();
}
public void addToDeleteFiles(org.apache.doris.thrift.TIcebergDeleteFileDesc elem) {
if (this.delete_files == null) {
this.delete_files = new java.util.ArrayList<org.apache.doris.thrift.TIcebergDeleteFileDesc>();
}
this.delete_files.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<org.apache.doris.thrift.TIcebergDeleteFileDesc> getDeleteFiles() {
return this.delete_files;
}
public TIcebergRewritableDeleteFileSet setDeleteFiles(@org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TIcebergDeleteFileDesc> delete_files) {
this.delete_files = delete_files;
return this;
}
public void unsetDeleteFiles() {
this.delete_files = null;
}
/** Returns true if field delete_files is set (has been assigned a value) and false otherwise */
public boolean isSetDeleteFiles() {
return this.delete_files != null;
}
public void setDeleteFilesIsSet(boolean value) {
if (!value) {
this.delete_files = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case REFERENCED_DATA_FILE_PATH:
if (value == null) {
unsetReferencedDataFilePath();
} else {
setReferencedDataFilePath((java.lang.String)value);
}
break;
case DELETE_FILES:
if (value == null) {
unsetDeleteFiles();
} else {
setDeleteFiles((java.util.List<org.apache.doris.thrift.TIcebergDeleteFileDesc>)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case REFERENCED_DATA_FILE_PATH:
return getReferencedDataFilePath();
case DELETE_FILES:
return getDeleteFiles();
}
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 REFERENCED_DATA_FILE_PATH:
return isSetReferencedDataFilePath();
case DELETE_FILES:
return isSetDeleteFiles();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TIcebergRewritableDeleteFileSet)
return this.equals((TIcebergRewritableDeleteFileSet)that);
return false;
}
public boolean equals(TIcebergRewritableDeleteFileSet that) {
if (that == null)
return false;
if (this == that)
return true;
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_delete_files = true && this.isSetDeleteFiles();
boolean that_present_delete_files = true && that.isSetDeleteFiles();
if (this_present_delete_files || that_present_delete_files) {
if (!(this_present_delete_files && that_present_delete_files))
return false;
if (!this.delete_files.equals(that.delete_files))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetReferencedDataFilePath()) ? 131071 : 524287);
if (isSetReferencedDataFilePath())
hashCode = hashCode * 8191 + referenced_data_file_path.hashCode();
hashCode = hashCode * 8191 + ((isSetDeleteFiles()) ? 131071 : 524287);
if (isSetDeleteFiles())
hashCode = hashCode * 8191 + delete_files.hashCode();
return hashCode;
}
@Override
public int compareTo(TIcebergRewritableDeleteFileSet other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
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(isSetDeleteFiles(), other.isSetDeleteFiles());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDeleteFiles()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delete_files, other.delete_files);
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("TIcebergRewritableDeleteFileSet(");
boolean first = true;
if (isSetReferencedDataFilePath()) {
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 (isSetDeleteFiles()) {
if (!first) sb.append(", ");
sb.append("delete_files:");
if (this.delete_files == null) {
sb.append("null");
} else {
sb.append(this.delete_files);
}
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
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 {
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 TIcebergRewritableDeleteFileSetStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TIcebergRewritableDeleteFileSetStandardScheme getScheme() {
return new TIcebergRewritableDeleteFileSetStandardScheme();
}
}
private static class TIcebergRewritableDeleteFileSetStandardScheme extends org.apache.thrift.scheme.StandardScheme<TIcebergRewritableDeleteFileSet> {
public void read(org.apache.thrift.protocol.TProtocol iprot, TIcebergRewritableDeleteFileSet 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: // 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 2: // DELETE_FILES
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list348 = iprot.readListBegin();
struct.delete_files = new java.util.ArrayList<org.apache.doris.thrift.TIcebergDeleteFileDesc>(_list348.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TIcebergDeleteFileDesc _elem349;
for (int _i350 = 0; _i350 < _list348.size; ++_i350)
{
_elem349 = new org.apache.doris.thrift.TIcebergDeleteFileDesc();
_elem349.read(iprot);
struct.delete_files.add(_elem349);
}
iprot.readListEnd();
}
struct.setDeleteFilesIsSet(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, TIcebergRewritableDeleteFileSet struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
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.delete_files != null) {
if (struct.isSetDeleteFiles()) {
oprot.writeFieldBegin(DELETE_FILES_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.delete_files.size()));
for (org.apache.doris.thrift.TIcebergDeleteFileDesc _iter351 : struct.delete_files)
{
_iter351.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TIcebergRewritableDeleteFileSetTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TIcebergRewritableDeleteFileSetTupleScheme getScheme() {
return new TIcebergRewritableDeleteFileSetTupleScheme();
}
}
private static class TIcebergRewritableDeleteFileSetTupleScheme extends org.apache.thrift.scheme.TupleScheme<TIcebergRewritableDeleteFileSet> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TIcebergRewritableDeleteFileSet 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.isSetReferencedDataFilePath()) {
optionals.set(0);
}
if (struct.isSetDeleteFiles()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetReferencedDataFilePath()) {
oprot.writeString(struct.referenced_data_file_path);
}
if (struct.isSetDeleteFiles()) {
{
oprot.writeI32(struct.delete_files.size());
for (org.apache.doris.thrift.TIcebergDeleteFileDesc _iter352 : struct.delete_files)
{
_iter352.write(oprot);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TIcebergRewritableDeleteFileSet struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.referenced_data_file_path = iprot.readString();
struct.setReferencedDataFilePathIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list353 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.delete_files = new java.util.ArrayList<org.apache.doris.thrift.TIcebergDeleteFileDesc>(_list353.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TIcebergDeleteFileDesc _elem354;
for (int _i355 = 0; _i355 < _list353.size; ++_i355)
{
_elem354 = new org.apache.doris.thrift.TIcebergDeleteFileDesc();
_elem354.read(iprot);
struct.delete_files.add(_elem354);
}
}
struct.setDeleteFilesIsSet(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();
}
}