TPaimonBlobFileDesc.java
/**
* Autogenerated by Thrift Compiler (0.24.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"})
public class TPaimonBlobFileDesc implements org.apache.thrift.TBase<TPaimonBlobFileDesc, TPaimonBlobFileDesc._Fields>, java.io.Serializable, Cloneable, Comparable<TPaimonBlobFileDesc> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TPaimonBlobFileDesc");
private static final org.apache.thrift.protocol.TField PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("path", org.apache.thrift.protocol.TType.STRING, (short)1);
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)2);
private static final org.apache.thrift.protocol.TField FIRST_ROW_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("first_row_id", org.apache.thrift.protocol.TType.I64, (short)3);
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)4);
private static final org.apache.thrift.protocol.TField FIELD_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("field_id", org.apache.thrift.protocol.TType.I32, (short)5);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TPaimonBlobFileDescStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TPaimonBlobFileDescTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.lang.String path; // optional
public long file_size; // optional
public long first_row_id; // optional
public long row_count; // optional
public int field_id; // 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 {
PATH((short)1, "path"),
FILE_SIZE((short)2, "file_size"),
FIRST_ROW_ID((short)3, "first_row_id"),
ROW_COUNT((short)4, "row_count"),
FIELD_ID((short)5, "field_id");
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: // PATH
return PATH;
case 2: // FILE_SIZE
return FILE_SIZE;
case 3: // FIRST_ROW_ID
return FIRST_ROW_ID;
case 4: // ROW_COUNT
return ROW_COUNT;
case 5: // FIELD_ID
return FIELD_ID;
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;
}
@Override
public short getThriftFieldId() {
return _thriftId;
}
@Override
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __FILE_SIZE_ISSET_ID = 0;
private static final int __FIRST_ROW_ID_ISSET_ID = 1;
private static final int __ROW_COUNT_ISSET_ID = 2;
private static final int __FIELD_ID_ISSET_ID = 3;
private byte __isset_bitfield = 0;
private static final _Fields[] optionals = {_Fields.PATH,_Fields.FILE_SIZE,_Fields.FIRST_ROW_ID,_Fields.ROW_COUNT,_Fields.FIELD_ID};
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.PATH, new org.apache.thrift.meta_data.FieldMetaData("path", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
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.FIRST_ROW_ID, new org.apache.thrift.meta_data.FieldMetaData("first_row_id", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
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.FIELD_ID, new org.apache.thrift.meta_data.FieldMetaData("field_id", org.apache.thrift.TFieldRequirementType.OPTIONAL,
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(TPaimonBlobFileDesc.class, metaDataMap);
}
public TPaimonBlobFileDesc() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TPaimonBlobFileDesc(TPaimonBlobFileDesc other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetPath()) {
this.path = other.path;
}
this.file_size = other.file_size;
this.first_row_id = other.first_row_id;
this.row_count = other.row_count;
this.field_id = other.field_id;
}
@Override
public TPaimonBlobFileDesc deepCopy() {
return new TPaimonBlobFileDesc(this);
}
@Override
public void clear() {
this.path = null;
setFileSizeIsSet(false);
this.file_size = 0;
setFirstRowIdIsSet(false);
this.first_row_id = 0;
setRowCountIsSet(false);
this.row_count = 0;
setFieldIdIsSet(false);
this.field_id = 0;
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getPath() {
return this.path;
}
public TPaimonBlobFileDesc setPath(@org.apache.thrift.annotation.Nullable java.lang.String path) {
this.path = path;
return this;
}
public void unsetPath() {
this.path = null;
}
/** Returns true if field path is set (has been assigned a value) and false otherwise */
public boolean isSetPath() {
return this.path != null;
}
public void setPathIsSet(boolean value) {
if (!value) {
this.path = null;
}
}
public long getFileSize() {
return this.file_size;
}
public TPaimonBlobFileDesc 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);
}
public long getFirstRowId() {
return this.first_row_id;
}
public TPaimonBlobFileDesc setFirstRowId(long first_row_id) {
this.first_row_id = first_row_id;
setFirstRowIdIsSet(true);
return this;
}
public void unsetFirstRowId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __FIRST_ROW_ID_ISSET_ID);
}
/** Returns true if field first_row_id is set (has been assigned a value) and false otherwise */
public boolean isSetFirstRowId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __FIRST_ROW_ID_ISSET_ID);
}
public void setFirstRowIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __FIRST_ROW_ID_ISSET_ID, value);
}
public long getRowCount() {
return this.row_count;
}
public TPaimonBlobFileDesc 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 int getFieldId() {
return this.field_id;
}
public TPaimonBlobFileDesc setFieldId(int field_id) {
this.field_id = field_id;
setFieldIdIsSet(true);
return this;
}
public void unsetFieldId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __FIELD_ID_ISSET_ID);
}
/** Returns true if field field_id is set (has been assigned a value) and false otherwise */
public boolean isSetFieldId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __FIELD_ID_ISSET_ID);
}
public void setFieldIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __FIELD_ID_ISSET_ID, value);
}
@Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case PATH:
if (value == null) {
unsetPath();
} else {
setPath((java.lang.String)value);
}
break;
case FILE_SIZE:
if (value == null) {
unsetFileSize();
} else {
setFileSize((java.lang.Long)value);
}
break;
case FIRST_ROW_ID:
if (value == null) {
unsetFirstRowId();
} else {
setFirstRowId((java.lang.Long)value);
}
break;
case ROW_COUNT:
if (value == null) {
unsetRowCount();
} else {
setRowCount((java.lang.Long)value);
}
break;
case FIELD_ID:
if (value == null) {
unsetFieldId();
} else {
setFieldId((java.lang.Integer)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
@Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case PATH:
return getPath();
case FILE_SIZE:
return getFileSize();
case FIRST_ROW_ID:
return getFirstRowId();
case ROW_COUNT:
return getRowCount();
case FIELD_ID:
return getFieldId();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
@Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case PATH:
return isSetPath();
case FILE_SIZE:
return isSetFileSize();
case FIRST_ROW_ID:
return isSetFirstRowId();
case ROW_COUNT:
return isSetRowCount();
case FIELD_ID:
return isSetFieldId();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TPaimonBlobFileDesc)
return this.equals((TPaimonBlobFileDesc)that);
return false;
}
public boolean equals(TPaimonBlobFileDesc that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_path = true && this.isSetPath();
boolean that_present_path = true && that.isSetPath();
if (this_present_path || that_present_path) {
if (!(this_present_path && that_present_path))
return false;
if (!this.path.equals(that.path))
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_first_row_id = true && this.isSetFirstRowId();
boolean that_present_first_row_id = true && that.isSetFirstRowId();
if (this_present_first_row_id || that_present_first_row_id) {
if (!(this_present_first_row_id && that_present_first_row_id))
return false;
if (this.first_row_id != that.first_row_id)
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_field_id = true && this.isSetFieldId();
boolean that_present_field_id = true && that.isSetFieldId();
if (this_present_field_id || that_present_field_id) {
if (!(this_present_field_id && that_present_field_id))
return false;
if (this.field_id != that.field_id)
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetPath()) ? 131071 : 524287);
if (isSetPath())
hashCode = hashCode * 8191 + path.hashCode();
hashCode = hashCode * 8191 + ((isSetFileSize()) ? 131071 : 524287);
if (isSetFileSize())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(file_size);
hashCode = hashCode * 8191 + ((isSetFirstRowId()) ? 131071 : 524287);
if (isSetFirstRowId())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(first_row_id);
hashCode = hashCode * 8191 + ((isSetRowCount()) ? 131071 : 524287);
if (isSetRowCount())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(row_count);
hashCode = hashCode * 8191 + ((isSetFieldId()) ? 131071 : 524287);
if (isSetFieldId())
hashCode = hashCode * 8191 + field_id;
return hashCode;
}
@Override
public int compareTo(TPaimonBlobFileDesc other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetPath(), other.isSetPath());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPath()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.path, other.path);
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(isSetFirstRowId(), other.isSetFirstRowId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFirstRowId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.first_row_id, other.first_row_id);
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(isSetFieldId(), other.isSetFieldId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFieldId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field_id, other.field_id);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
@Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
@Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
@Override
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("TPaimonBlobFileDesc(");
boolean first = true;
if (isSetPath()) {
sb.append("path:");
if (this.path == null) {
sb.append("null");
} else {
sb.append(this.path);
}
first = false;
}
if (isSetFileSize()) {
if (!first) sb.append(", ");
sb.append("file_size:");
sb.append(this.file_size);
first = false;
}
if (isSetFirstRowId()) {
if (!first) sb.append(", ");
sb.append("first_row_id:");
sb.append(this.first_row_id);
first = false;
}
if (isSetRowCount()) {
if (!first) sb.append(", ");
sb.append("row_count:");
sb.append(this.row_count);
first = false;
}
if (isSetFieldId()) {
if (!first) sb.append(", ");
sb.append("field_id:");
sb.append(this.field_id);
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 {
// 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 TPaimonBlobFileDescStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
@Override
public TPaimonBlobFileDescStandardScheme getScheme() {
return new TPaimonBlobFileDescStandardScheme();
}
}
private static class TPaimonBlobFileDescStandardScheme extends org.apache.thrift.scheme.StandardScheme<TPaimonBlobFileDesc> {
@Override
public void read(org.apache.thrift.protocol.TProtocol iprot, TPaimonBlobFileDesc struct) throws org.apache.thrift.TException {
iprot.incrementRecursionDepth();
try {
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: // PATH
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // 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 3: // FIRST_ROW_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.first_row_id = iprot.readI64();
struct.setFirstRowIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // 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 5: // FIELD_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.field_id = iprot.readI32();
struct.setFieldIdIsSet(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();
} finally {
iprot.decrementRecursionDepth();
}
}
@Override
public void write(org.apache.thrift.protocol.TProtocol oprot, TPaimonBlobFileDesc struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.path != null) {
if (struct.isSetPath()) {
oprot.writeFieldBegin(PATH_FIELD_DESC);
oprot.writeString(struct.path);
oprot.writeFieldEnd();
}
}
if (struct.isSetFileSize()) {
oprot.writeFieldBegin(FILE_SIZE_FIELD_DESC);
oprot.writeI64(struct.file_size);
oprot.writeFieldEnd();
}
if (struct.isSetFirstRowId()) {
oprot.writeFieldBegin(FIRST_ROW_ID_FIELD_DESC);
oprot.writeI64(struct.first_row_id);
oprot.writeFieldEnd();
}
if (struct.isSetRowCount()) {
oprot.writeFieldBegin(ROW_COUNT_FIELD_DESC);
oprot.writeI64(struct.row_count);
oprot.writeFieldEnd();
}
if (struct.isSetFieldId()) {
oprot.writeFieldBegin(FIELD_ID_FIELD_DESC);
oprot.writeI32(struct.field_id);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TPaimonBlobFileDescTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
@Override
public TPaimonBlobFileDescTupleScheme getScheme() {
return new TPaimonBlobFileDescTupleScheme();
}
}
private static class TPaimonBlobFileDescTupleScheme extends org.apache.thrift.scheme.TupleScheme<TPaimonBlobFileDesc> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TPaimonBlobFileDesc 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.isSetPath()) {
optionals.set(0);
}
if (struct.isSetFileSize()) {
optionals.set(1);
}
if (struct.isSetFirstRowId()) {
optionals.set(2);
}
if (struct.isSetRowCount()) {
optionals.set(3);
}
if (struct.isSetFieldId()) {
optionals.set(4);
}
oprot.writeBitSet(optionals, 5);
if (struct.isSetPath()) {
oprot.writeString(struct.path);
}
if (struct.isSetFileSize()) {
oprot.writeI64(struct.file_size);
}
if (struct.isSetFirstRowId()) {
oprot.writeI64(struct.first_row_id);
}
if (struct.isSetRowCount()) {
oprot.writeI64(struct.row_count);
}
if (struct.isSetFieldId()) {
oprot.writeI32(struct.field_id);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TPaimonBlobFileDesc struct) throws org.apache.thrift.TException {
prot.incrementRecursionDepth();
try {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(5);
if (incoming.get(0)) {
struct.path = iprot.readString();
struct.setPathIsSet(true);
}
if (incoming.get(1)) {
struct.file_size = iprot.readI64();
struct.setFileSizeIsSet(true);
}
if (incoming.get(2)) {
struct.first_row_id = iprot.readI64();
struct.setFirstRowIdIsSet(true);
}
if (incoming.get(3)) {
struct.row_count = iprot.readI64();
struct.setRowCountIsSet(true);
}
if (incoming.get(4)) {
struct.field_id = iprot.readI32();
struct.setFieldIdIsSet(true);
}
} finally {
prot.decrementRecursionDepth();
}
}
}
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();
}
}