TWarmUpTabletsResponse.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 TWarmUpTabletsResponse implements org.apache.thrift.TBase<TWarmUpTabletsResponse, TWarmUpTabletsResponse._Fields>, java.io.Serializable, Cloneable, Comparable<TWarmUpTabletsResponse> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TWarmUpTabletsResponse");
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final org.apache.thrift.protocol.TField JOB_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("job_id", org.apache.thrift.protocol.TType.I64, (short)2);
private static final org.apache.thrift.protocol.TField BATCH_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("batch_id", org.apache.thrift.protocol.TType.I64, (short)3);
private static final org.apache.thrift.protocol.TField PENDING_JOB_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("pending_job_size", org.apache.thrift.protocol.TType.I64, (short)4);
private static final org.apache.thrift.protocol.TField FINISH_JOB_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("finish_job_size", org.apache.thrift.protocol.TType.I64, (short)5);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TWarmUpTabletsResponseStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TWarmUpTabletsResponseTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TStatus status; // required
public long job_id; // optional
public long batch_id; // optional
public long pending_job_size; // optional
public long finish_job_size; // 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 {
STATUS((short)1, "status"),
JOB_ID((short)2, "job_id"),
BATCH_ID((short)3, "batch_id"),
PENDING_JOB_SIZE((short)4, "pending_job_size"),
FINISH_JOB_SIZE((short)5, "finish_job_size");
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: // STATUS
return STATUS;
case 2: // JOB_ID
return JOB_ID;
case 3: // BATCH_ID
return BATCH_ID;
case 4: // PENDING_JOB_SIZE
return PENDING_JOB_SIZE;
case 5: // FINISH_JOB_SIZE
return FINISH_JOB_SIZE;
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 __JOB_ID_ISSET_ID = 0;
private static final int __BATCH_ID_ISSET_ID = 1;
private static final int __PENDING_JOB_SIZE_ISSET_ID = 2;
private static final int __FINISH_JOB_SIZE_ISSET_ID = 3;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.JOB_ID,_Fields.BATCH_ID,_Fields.PENDING_JOB_SIZE,_Fields.FINISH_JOB_SIZE};
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.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.doris.thrift.TStatus.class)));
tmpMap.put(_Fields.JOB_ID, new org.apache.thrift.meta_data.FieldMetaData("job_id", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.BATCH_ID, new org.apache.thrift.meta_data.FieldMetaData("batch_id", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.PENDING_JOB_SIZE, new org.apache.thrift.meta_data.FieldMetaData("pending_job_size", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.FINISH_JOB_SIZE, new org.apache.thrift.meta_data.FieldMetaData("finish_job_size", 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(TWarmUpTabletsResponse.class, metaDataMap);
}
public TWarmUpTabletsResponse() {
}
public TWarmUpTabletsResponse(
org.apache.doris.thrift.TStatus status)
{
this();
this.status = status;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TWarmUpTabletsResponse(TWarmUpTabletsResponse other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetStatus()) {
this.status = new org.apache.doris.thrift.TStatus(other.status);
}
this.job_id = other.job_id;
this.batch_id = other.batch_id;
this.pending_job_size = other.pending_job_size;
this.finish_job_size = other.finish_job_size;
}
public TWarmUpTabletsResponse deepCopy() {
return new TWarmUpTabletsResponse(this);
}
@Override
public void clear() {
this.status = null;
setJobIdIsSet(false);
this.job_id = 0;
setBatchIdIsSet(false);
this.batch_id = 0;
setPendingJobSizeIsSet(false);
this.pending_job_size = 0;
setFinishJobSizeIsSet(false);
this.finish_job_size = 0;
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TStatus getStatus() {
return this.status;
}
public TWarmUpTabletsResponse setStatus(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TStatus status) {
this.status = status;
return this;
}
public void unsetStatus() {
this.status = null;
}
/** Returns true if field status is set (has been assigned a value) and false otherwise */
public boolean isSetStatus() {
return this.status != null;
}
public void setStatusIsSet(boolean value) {
if (!value) {
this.status = null;
}
}
public long getJobId() {
return this.job_id;
}
public TWarmUpTabletsResponse setJobId(long job_id) {
this.job_id = job_id;
setJobIdIsSet(true);
return this;
}
public void unsetJobId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __JOB_ID_ISSET_ID);
}
/** Returns true if field job_id is set (has been assigned a value) and false otherwise */
public boolean isSetJobId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __JOB_ID_ISSET_ID);
}
public void setJobIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __JOB_ID_ISSET_ID, value);
}
public long getBatchId() {
return this.batch_id;
}
public TWarmUpTabletsResponse setBatchId(long batch_id) {
this.batch_id = batch_id;
setBatchIdIsSet(true);
return this;
}
public void unsetBatchId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __BATCH_ID_ISSET_ID);
}
/** Returns true if field batch_id is set (has been assigned a value) and false otherwise */
public boolean isSetBatchId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __BATCH_ID_ISSET_ID);
}
public void setBatchIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __BATCH_ID_ISSET_ID, value);
}
public long getPendingJobSize() {
return this.pending_job_size;
}
public TWarmUpTabletsResponse setPendingJobSize(long pending_job_size) {
this.pending_job_size = pending_job_size;
setPendingJobSizeIsSet(true);
return this;
}
public void unsetPendingJobSize() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __PENDING_JOB_SIZE_ISSET_ID);
}
/** Returns true if field pending_job_size is set (has been assigned a value) and false otherwise */
public boolean isSetPendingJobSize() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PENDING_JOB_SIZE_ISSET_ID);
}
public void setPendingJobSizeIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PENDING_JOB_SIZE_ISSET_ID, value);
}
public long getFinishJobSize() {
return this.finish_job_size;
}
public TWarmUpTabletsResponse setFinishJobSize(long finish_job_size) {
this.finish_job_size = finish_job_size;
setFinishJobSizeIsSet(true);
return this;
}
public void unsetFinishJobSize() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __FINISH_JOB_SIZE_ISSET_ID);
}
/** Returns true if field finish_job_size is set (has been assigned a value) and false otherwise */
public boolean isSetFinishJobSize() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __FINISH_JOB_SIZE_ISSET_ID);
}
public void setFinishJobSizeIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __FINISH_JOB_SIZE_ISSET_ID, value);
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case STATUS:
if (value == null) {
unsetStatus();
} else {
setStatus((org.apache.doris.thrift.TStatus)value);
}
break;
case JOB_ID:
if (value == null) {
unsetJobId();
} else {
setJobId((java.lang.Long)value);
}
break;
case BATCH_ID:
if (value == null) {
unsetBatchId();
} else {
setBatchId((java.lang.Long)value);
}
break;
case PENDING_JOB_SIZE:
if (value == null) {
unsetPendingJobSize();
} else {
setPendingJobSize((java.lang.Long)value);
}
break;
case FINISH_JOB_SIZE:
if (value == null) {
unsetFinishJobSize();
} else {
setFinishJobSize((java.lang.Long)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case STATUS:
return getStatus();
case JOB_ID:
return getJobId();
case BATCH_ID:
return getBatchId();
case PENDING_JOB_SIZE:
return getPendingJobSize();
case FINISH_JOB_SIZE:
return getFinishJobSize();
}
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 STATUS:
return isSetStatus();
case JOB_ID:
return isSetJobId();
case BATCH_ID:
return isSetBatchId();
case PENDING_JOB_SIZE:
return isSetPendingJobSize();
case FINISH_JOB_SIZE:
return isSetFinishJobSize();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TWarmUpTabletsResponse)
return this.equals((TWarmUpTabletsResponse)that);
return false;
}
public boolean equals(TWarmUpTabletsResponse that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_status = true && this.isSetStatus();
boolean that_present_status = true && that.isSetStatus();
if (this_present_status || that_present_status) {
if (!(this_present_status && that_present_status))
return false;
if (!this.status.equals(that.status))
return false;
}
boolean this_present_job_id = true && this.isSetJobId();
boolean that_present_job_id = true && that.isSetJobId();
if (this_present_job_id || that_present_job_id) {
if (!(this_present_job_id && that_present_job_id))
return false;
if (this.job_id != that.job_id)
return false;
}
boolean this_present_batch_id = true && this.isSetBatchId();
boolean that_present_batch_id = true && that.isSetBatchId();
if (this_present_batch_id || that_present_batch_id) {
if (!(this_present_batch_id && that_present_batch_id))
return false;
if (this.batch_id != that.batch_id)
return false;
}
boolean this_present_pending_job_size = true && this.isSetPendingJobSize();
boolean that_present_pending_job_size = true && that.isSetPendingJobSize();
if (this_present_pending_job_size || that_present_pending_job_size) {
if (!(this_present_pending_job_size && that_present_pending_job_size))
return false;
if (this.pending_job_size != that.pending_job_size)
return false;
}
boolean this_present_finish_job_size = true && this.isSetFinishJobSize();
boolean that_present_finish_job_size = true && that.isSetFinishJobSize();
if (this_present_finish_job_size || that_present_finish_job_size) {
if (!(this_present_finish_job_size && that_present_finish_job_size))
return false;
if (this.finish_job_size != that.finish_job_size)
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetStatus()) ? 131071 : 524287);
if (isSetStatus())
hashCode = hashCode * 8191 + status.hashCode();
hashCode = hashCode * 8191 + ((isSetJobId()) ? 131071 : 524287);
if (isSetJobId())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(job_id);
hashCode = hashCode * 8191 + ((isSetBatchId()) ? 131071 : 524287);
if (isSetBatchId())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(batch_id);
hashCode = hashCode * 8191 + ((isSetPendingJobSize()) ? 131071 : 524287);
if (isSetPendingJobSize())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(pending_job_size);
hashCode = hashCode * 8191 + ((isSetFinishJobSize()) ? 131071 : 524287);
if (isSetFinishJobSize())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(finish_job_size);
return hashCode;
}
@Override
public int compareTo(TWarmUpTabletsResponse other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetStatus(), other.isSetStatus());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetStatus()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetJobId(), other.isSetJobId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetJobId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.job_id, other.job_id);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetBatchId(), other.isSetBatchId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBatchId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.batch_id, other.batch_id);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetPendingJobSize(), other.isSetPendingJobSize());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPendingJobSize()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pending_job_size, other.pending_job_size);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetFinishJobSize(), other.isSetFinishJobSize());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFinishJobSize()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.finish_job_size, other.finish_job_size);
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("TWarmUpTabletsResponse(");
boolean first = true;
sb.append("status:");
if (this.status == null) {
sb.append("null");
} else {
sb.append(this.status);
}
first = false;
if (isSetJobId()) {
if (!first) sb.append(", ");
sb.append("job_id:");
sb.append(this.job_id);
first = false;
}
if (isSetBatchId()) {
if (!first) sb.append(", ");
sb.append("batch_id:");
sb.append(this.batch_id);
first = false;
}
if (isSetPendingJobSize()) {
if (!first) sb.append(", ");
sb.append("pending_job_size:");
sb.append(this.pending_job_size);
first = false;
}
if (isSetFinishJobSize()) {
if (!first) sb.append(", ");
sb.append("finish_job_size:");
sb.append(this.finish_job_size);
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
if (status == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' was not present! Struct: " + toString());
}
// check for sub-struct validity
if (status != null) {
status.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 TWarmUpTabletsResponseStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TWarmUpTabletsResponseStandardScheme getScheme() {
return new TWarmUpTabletsResponseStandardScheme();
}
}
private static class TWarmUpTabletsResponseStandardScheme extends org.apache.thrift.scheme.StandardScheme<TWarmUpTabletsResponse> {
public void read(org.apache.thrift.protocol.TProtocol iprot, TWarmUpTabletsResponse 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: // STATUS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.status = new org.apache.doris.thrift.TStatus();
struct.status.read(iprot);
struct.setStatusIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // JOB_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.job_id = iprot.readI64();
struct.setJobIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // BATCH_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.batch_id = iprot.readI64();
struct.setBatchIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // PENDING_JOB_SIZE
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.pending_job_size = iprot.readI64();
struct.setPendingJobSizeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // FINISH_JOB_SIZE
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.finish_job_size = iprot.readI64();
struct.setFinishJobSizeIsSet(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, TWarmUpTabletsResponse struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.status != null) {
oprot.writeFieldBegin(STATUS_FIELD_DESC);
struct.status.write(oprot);
oprot.writeFieldEnd();
}
if (struct.isSetJobId()) {
oprot.writeFieldBegin(JOB_ID_FIELD_DESC);
oprot.writeI64(struct.job_id);
oprot.writeFieldEnd();
}
if (struct.isSetBatchId()) {
oprot.writeFieldBegin(BATCH_ID_FIELD_DESC);
oprot.writeI64(struct.batch_id);
oprot.writeFieldEnd();
}
if (struct.isSetPendingJobSize()) {
oprot.writeFieldBegin(PENDING_JOB_SIZE_FIELD_DESC);
oprot.writeI64(struct.pending_job_size);
oprot.writeFieldEnd();
}
if (struct.isSetFinishJobSize()) {
oprot.writeFieldBegin(FINISH_JOB_SIZE_FIELD_DESC);
oprot.writeI64(struct.finish_job_size);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TWarmUpTabletsResponseTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TWarmUpTabletsResponseTupleScheme getScheme() {
return new TWarmUpTabletsResponseTupleScheme();
}
}
private static class TWarmUpTabletsResponseTupleScheme extends org.apache.thrift.scheme.TupleScheme<TWarmUpTabletsResponse> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TWarmUpTabletsResponse struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
struct.status.write(oprot);
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetJobId()) {
optionals.set(0);
}
if (struct.isSetBatchId()) {
optionals.set(1);
}
if (struct.isSetPendingJobSize()) {
optionals.set(2);
}
if (struct.isSetFinishJobSize()) {
optionals.set(3);
}
oprot.writeBitSet(optionals, 4);
if (struct.isSetJobId()) {
oprot.writeI64(struct.job_id);
}
if (struct.isSetBatchId()) {
oprot.writeI64(struct.batch_id);
}
if (struct.isSetPendingJobSize()) {
oprot.writeI64(struct.pending_job_size);
}
if (struct.isSetFinishJobSize()) {
oprot.writeI64(struct.finish_job_size);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TWarmUpTabletsResponse struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
struct.status = new org.apache.doris.thrift.TStatus();
struct.status.read(iprot);
struct.setStatusIsSet(true);
java.util.BitSet incoming = iprot.readBitSet(4);
if (incoming.get(0)) {
struct.job_id = iprot.readI64();
struct.setJobIdIsSet(true);
}
if (incoming.get(1)) {
struct.batch_id = iprot.readI64();
struct.setBatchIdIsSet(true);
}
if (incoming.get(2)) {
struct.pending_job_size = iprot.readI64();
struct.setPendingJobSizeIsSet(true);
}
if (incoming.get(3)) {
struct.finish_job_size = iprot.readI64();
struct.setFinishJobSizeIsSet(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();
}
}