TPaimonFixedBucketInfo.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-08-17")
public class TPaimonFixedBucketInfo implements org.apache.thrift.TBase<TPaimonFixedBucketInfo, TPaimonFixedBucketInfo._Fields>, java.io.Serializable, Cloneable, Comparable<TPaimonFixedBucketInfo> {
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPaimonFixedBucketInfo");

  private static final org.apache.thrift.protocol.TField NUM_BUCKETS_FIELD_DESC = new org.apache.thrift.protocol.TField("num_buckets", org.apache.thrift.protocol.TType.I32, (short)1);
  private static final org.apache.thrift.protocol.TField PARTITION_FIELD_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("partition_field_indexes", org.apache.thrift.protocol.TType.LIST, (short)2);
  private static final org.apache.thrift.protocol.TField BUCKET_FIELD_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("bucket_field_indexes", org.apache.thrift.protocol.TType.LIST, (short)3);

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

  public int num_buckets; // required
  public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> partition_field_indexes; // required
  public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> bucket_field_indexes; // required

  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    NUM_BUCKETS((short)1, "num_buckets"),
    PARTITION_FIELD_INDEXES((short)2, "partition_field_indexes"),
    BUCKET_FIELD_INDEXES((short)3, "bucket_field_indexes");

    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: // NUM_BUCKETS
          return NUM_BUCKETS;
        case 2: // PARTITION_FIELD_INDEXES
          return PARTITION_FIELD_INDEXES;
        case 3: // BUCKET_FIELD_INDEXES
          return BUCKET_FIELD_INDEXES;
        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 __NUM_BUCKETS_ISSET_ID = 0;
  private byte __isset_bitfield = 0;
  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.NUM_BUCKETS, new org.apache.thrift.meta_data.FieldMetaData("num_buckets", org.apache.thrift.TFieldRequirementType.REQUIRED, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
    tmpMap.put(_Fields.PARTITION_FIELD_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("partition_field_indexes", org.apache.thrift.TFieldRequirementType.REQUIRED, 
        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.BUCKET_FIELD_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("bucket_field_indexes", org.apache.thrift.TFieldRequirementType.REQUIRED, 
        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))));
    metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TPaimonFixedBucketInfo.class, metaDataMap);
  }

  public TPaimonFixedBucketInfo() {
  }

  public TPaimonFixedBucketInfo(
    int num_buckets,
    java.util.List<java.lang.Integer> partition_field_indexes,
    java.util.List<java.lang.Integer> bucket_field_indexes)
  {
    this();
    this.num_buckets = num_buckets;
    setNumBucketsIsSet(true);
    this.partition_field_indexes = partition_field_indexes;
    this.bucket_field_indexes = bucket_field_indexes;
  }

  /**
   * Performs a deep copy on <i>other</i>.
   */
  public TPaimonFixedBucketInfo(TPaimonFixedBucketInfo other) {
    __isset_bitfield = other.__isset_bitfield;
    this.num_buckets = other.num_buckets;
    if (other.isSetPartitionFieldIndexes()) {
      java.util.List<java.lang.Integer> __this__partition_field_indexes = new java.util.ArrayList<java.lang.Integer>(other.partition_field_indexes);
      this.partition_field_indexes = __this__partition_field_indexes;
    }
    if (other.isSetBucketFieldIndexes()) {
      java.util.List<java.lang.Integer> __this__bucket_field_indexes = new java.util.ArrayList<java.lang.Integer>(other.bucket_field_indexes);
      this.bucket_field_indexes = __this__bucket_field_indexes;
    }
  }

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

  @Override
  public void clear() {
    setNumBucketsIsSet(false);
    this.num_buckets = 0;
    this.partition_field_indexes = null;
    this.bucket_field_indexes = null;
  }

  public int getNumBuckets() {
    return this.num_buckets;
  }

  public TPaimonFixedBucketInfo setNumBuckets(int num_buckets) {
    this.num_buckets = num_buckets;
    setNumBucketsIsSet(true);
    return this;
  }

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

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

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

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

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

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

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

  public TPaimonFixedBucketInfo setPartitionFieldIndexes(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> partition_field_indexes) {
    this.partition_field_indexes = partition_field_indexes;
    return this;
  }

  public void unsetPartitionFieldIndexes() {
    this.partition_field_indexes = null;
  }

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

  public void setPartitionFieldIndexesIsSet(boolean value) {
    if (!value) {
      this.partition_field_indexes = null;
    }
  }

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

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

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

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

  public TPaimonFixedBucketInfo setBucketFieldIndexes(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Integer> bucket_field_indexes) {
    this.bucket_field_indexes = bucket_field_indexes;
    return this;
  }

  public void unsetBucketFieldIndexes() {
    this.bucket_field_indexes = null;
  }

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

  public void setBucketFieldIndexesIsSet(boolean value) {
    if (!value) {
      this.bucket_field_indexes = null;
    }
  }

  public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
    switch (field) {
    case NUM_BUCKETS:
      if (value == null) {
        unsetNumBuckets();
      } else {
        setNumBuckets((java.lang.Integer)value);
      }
      break;

    case PARTITION_FIELD_INDEXES:
      if (value == null) {
        unsetPartitionFieldIndexes();
      } else {
        setPartitionFieldIndexes((java.util.List<java.lang.Integer>)value);
      }
      break;

    case BUCKET_FIELD_INDEXES:
      if (value == null) {
        unsetBucketFieldIndexes();
      } else {
        setBucketFieldIndexes((java.util.List<java.lang.Integer>)value);
      }
      break;

    }
  }

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

    case PARTITION_FIELD_INDEXES:
      return getPartitionFieldIndexes();

    case BUCKET_FIELD_INDEXES:
      return getBucketFieldIndexes();

    }
    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 NUM_BUCKETS:
      return isSetNumBuckets();
    case PARTITION_FIELD_INDEXES:
      return isSetPartitionFieldIndexes();
    case BUCKET_FIELD_INDEXES:
      return isSetBucketFieldIndexes();
    }
    throw new java.lang.IllegalStateException();
  }

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

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

    boolean this_present_num_buckets = true;
    boolean that_present_num_buckets = true;
    if (this_present_num_buckets || that_present_num_buckets) {
      if (!(this_present_num_buckets && that_present_num_buckets))
        return false;
      if (this.num_buckets != that.num_buckets)
        return false;
    }

    boolean this_present_partition_field_indexes = true && this.isSetPartitionFieldIndexes();
    boolean that_present_partition_field_indexes = true && that.isSetPartitionFieldIndexes();
    if (this_present_partition_field_indexes || that_present_partition_field_indexes) {
      if (!(this_present_partition_field_indexes && that_present_partition_field_indexes))
        return false;
      if (!this.partition_field_indexes.equals(that.partition_field_indexes))
        return false;
    }

    boolean this_present_bucket_field_indexes = true && this.isSetBucketFieldIndexes();
    boolean that_present_bucket_field_indexes = true && that.isSetBucketFieldIndexes();
    if (this_present_bucket_field_indexes || that_present_bucket_field_indexes) {
      if (!(this_present_bucket_field_indexes && that_present_bucket_field_indexes))
        return false;
      if (!this.bucket_field_indexes.equals(that.bucket_field_indexes))
        return false;
    }

    return true;
  }

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

    hashCode = hashCode * 8191 + num_buckets;

    hashCode = hashCode * 8191 + ((isSetPartitionFieldIndexes()) ? 131071 : 524287);
    if (isSetPartitionFieldIndexes())
      hashCode = hashCode * 8191 + partition_field_indexes.hashCode();

    hashCode = hashCode * 8191 + ((isSetBucketFieldIndexes()) ? 131071 : 524287);
    if (isSetBucketFieldIndexes())
      hashCode = hashCode * 8191 + bucket_field_indexes.hashCode();

    return hashCode;
  }

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

    int lastComparison = 0;

    lastComparison = java.lang.Boolean.compare(isSetNumBuckets(), other.isSetNumBuckets());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetNumBuckets()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.num_buckets, other.num_buckets);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetPartitionFieldIndexes(), other.isSetPartitionFieldIndexes());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPartitionFieldIndexes()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partition_field_indexes, other.partition_field_indexes);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = java.lang.Boolean.compare(isSetBucketFieldIndexes(), other.isSetBucketFieldIndexes());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetBucketFieldIndexes()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bucket_field_indexes, other.bucket_field_indexes);
      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("TPaimonFixedBucketInfo(");
    boolean first = true;

    sb.append("num_buckets:");
    sb.append(this.num_buckets);
    first = false;
    if (!first) sb.append(", ");
    sb.append("partition_field_indexes:");
    if (this.partition_field_indexes == null) {
      sb.append("null");
    } else {
      sb.append(this.partition_field_indexes);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("bucket_field_indexes:");
    if (this.bucket_field_indexes == null) {
      sb.append("null");
    } else {
      sb.append(this.bucket_field_indexes);
    }
    first = false;
    sb.append(")");
    return sb.toString();
  }

  public void validate() throws org.apache.thrift.TException {
    // check for required fields
    // alas, we cannot check 'num_buckets' because it's a primitive and you chose the non-beans generator.
    if (partition_field_indexes == null) {
      throw new org.apache.thrift.protocol.TProtocolException("Required field 'partition_field_indexes' was not present! Struct: " + toString());
    }
    if (bucket_field_indexes == null) {
      throw new org.apache.thrift.protocol.TProtocolException("Required field 'bucket_field_indexes' was not present! Struct: " + toString());
    }
    // 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 {
      // 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 TPaimonFixedBucketInfoStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
    public TPaimonFixedBucketInfoStandardScheme getScheme() {
      return new TPaimonFixedBucketInfoStandardScheme();
    }
  }

  private static class TPaimonFixedBucketInfoStandardScheme extends org.apache.thrift.scheme.StandardScheme<TPaimonFixedBucketInfo> {

    public void read(org.apache.thrift.protocol.TProtocol iprot, TPaimonFixedBucketInfo 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: // NUM_BUCKETS
            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
              struct.num_buckets = iprot.readI32();
              struct.setNumBucketsIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 2: // PARTITION_FIELD_INDEXES
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
                struct.partition_field_indexes = new java.util.ArrayList<java.lang.Integer>(_list32.size);
                int _elem33;
                for (int _i34 = 0; _i34 < _list32.size; ++_i34)
                {
                  _elem33 = iprot.readI32();
                  struct.partition_field_indexes.add(_elem33);
                }
                iprot.readListEnd();
              }
              struct.setPartitionFieldIndexesIsSet(true);
            } else { 
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 3: // BUCKET_FIELD_INDEXES
            if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
              {
                org.apache.thrift.protocol.TList _list35 = iprot.readListBegin();
                struct.bucket_field_indexes = new java.util.ArrayList<java.lang.Integer>(_list35.size);
                int _elem36;
                for (int _i37 = 0; _i37 < _list35.size; ++_i37)
                {
                  _elem36 = iprot.readI32();
                  struct.bucket_field_indexes.add(_elem36);
                }
                iprot.readListEnd();
              }
              struct.setBucketFieldIndexesIsSet(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
      if (!struct.isSetNumBuckets()) {
        throw new org.apache.thrift.protocol.TProtocolException("Required field 'num_buckets' was not found in serialized data! Struct: " + toString());
      }
      struct.validate();
    }

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

      oprot.writeStructBegin(STRUCT_DESC);
      oprot.writeFieldBegin(NUM_BUCKETS_FIELD_DESC);
      oprot.writeI32(struct.num_buckets);
      oprot.writeFieldEnd();
      if (struct.partition_field_indexes != null) {
        oprot.writeFieldBegin(PARTITION_FIELD_INDEXES_FIELD_DESC);
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.partition_field_indexes.size()));
          for (int _iter38 : struct.partition_field_indexes)
          {
            oprot.writeI32(_iter38);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      if (struct.bucket_field_indexes != null) {
        oprot.writeFieldBegin(BUCKET_FIELD_INDEXES_FIELD_DESC);
        {
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I32, struct.bucket_field_indexes.size()));
          for (int _iter39 : struct.bucket_field_indexes)
          {
            oprot.writeI32(_iter39);
          }
          oprot.writeListEnd();
        }
        oprot.writeFieldEnd();
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }

  }

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

  private static class TPaimonFixedBucketInfoTupleScheme extends org.apache.thrift.scheme.TupleScheme<TPaimonFixedBucketInfo> {

    @Override
    public void write(org.apache.thrift.protocol.TProtocol prot, TPaimonFixedBucketInfo struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      oprot.writeI32(struct.num_buckets);
      {
        oprot.writeI32(struct.partition_field_indexes.size());
        for (int _iter40 : struct.partition_field_indexes)
        {
          oprot.writeI32(_iter40);
        }
      }
      {
        oprot.writeI32(struct.bucket_field_indexes.size());
        for (int _iter41 : struct.bucket_field_indexes)
        {
          oprot.writeI32(_iter41);
        }
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, TPaimonFixedBucketInfo struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
      struct.num_buckets = iprot.readI32();
      struct.setNumBucketsIsSet(true);
      {
        org.apache.thrift.protocol.TList _list42 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
        struct.partition_field_indexes = new java.util.ArrayList<java.lang.Integer>(_list42.size);
        int _elem43;
        for (int _i44 = 0; _i44 < _list42.size; ++_i44)
        {
          _elem43 = iprot.readI32();
          struct.partition_field_indexes.add(_elem43);
        }
      }
      struct.setPartitionFieldIndexesIsSet(true);
      {
        org.apache.thrift.protocol.TList _list45 = iprot.readListBegin(org.apache.thrift.protocol.TType.I32);
        struct.bucket_field_indexes = new java.util.ArrayList<java.lang.Integer>(_list45.size);
        int _elem46;
        for (int _i47 = 0; _i47 < _list45.size; ++_i47)
        {
          _elem46 = iprot.readI32();
          struct.bucket_field_indexes.add(_elem46);
        }
      }
      struct.setBucketFieldIndexesIsSet(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();
  }
}