TWarmUpTabletsRequest.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 TWarmUpTabletsRequest implements org.apache.thrift.TBase<TWarmUpTabletsRequest, TWarmUpTabletsRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TWarmUpTabletsRequest> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TWarmUpTabletsRequest");
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)1);
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)2);
private static final org.apache.thrift.protocol.TField JOB_METAS_FIELD_DESC = new org.apache.thrift.protocol.TField("job_metas", org.apache.thrift.protocol.TType.LIST, (short)3);
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)4);
private static final org.apache.thrift.protocol.TField EVENT_FIELD_DESC = new org.apache.thrift.protocol.TField("event", org.apache.thrift.protocol.TType.I32, (short)5);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TWarmUpTabletsRequestStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TWarmUpTabletsRequestTupleSchemeFactory();
public long job_id; // required
public long batch_id; // required
public @org.apache.thrift.annotation.Nullable java.util.List<TJobMeta> job_metas; // optional
/**
*
* @see TWarmUpTabletsRequestType
*/
public @org.apache.thrift.annotation.Nullable TWarmUpTabletsRequestType type; // required
/**
*
* @see TWarmUpEventType
*/
public @org.apache.thrift.annotation.Nullable TWarmUpEventType event; // 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 {
JOB_ID((short)1, "job_id"),
BATCH_ID((short)2, "batch_id"),
JOB_METAS((short)3, "job_metas"),
/**
*
* @see TWarmUpTabletsRequestType
*/
TYPE((short)4, "type"),
/**
*
* @see TWarmUpEventType
*/
EVENT((short)5, "event");
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: // JOB_ID
return JOB_ID;
case 2: // BATCH_ID
return BATCH_ID;
case 3: // JOB_METAS
return JOB_METAS;
case 4: // TYPE
return TYPE;
case 5: // EVENT
return EVENT;
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 byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.JOB_METAS,_Fields.EVENT};
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.JOB_ID, new org.apache.thrift.meta_data.FieldMetaData("job_id", org.apache.thrift.TFieldRequirementType.REQUIRED,
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.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.JOB_METAS, new org.apache.thrift.meta_data.FieldMetaData("job_metas", 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, TJobMeta.class))));
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TWarmUpTabletsRequestType.class)));
tmpMap.put(_Fields.EVENT, new org.apache.thrift.meta_data.FieldMetaData("event", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TWarmUpEventType.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TWarmUpTabletsRequest.class, metaDataMap);
}
public TWarmUpTabletsRequest() {
}
public TWarmUpTabletsRequest(
long job_id,
long batch_id,
TWarmUpTabletsRequestType type)
{
this();
this.job_id = job_id;
setJobIdIsSet(true);
this.batch_id = batch_id;
setBatchIdIsSet(true);
this.type = type;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TWarmUpTabletsRequest(TWarmUpTabletsRequest other) {
__isset_bitfield = other.__isset_bitfield;
this.job_id = other.job_id;
this.batch_id = other.batch_id;
if (other.isSetJobMetas()) {
java.util.List<TJobMeta> __this__job_metas = new java.util.ArrayList<TJobMeta>(other.job_metas.size());
for (TJobMeta other_element : other.job_metas) {
__this__job_metas.add(new TJobMeta(other_element));
}
this.job_metas = __this__job_metas;
}
if (other.isSetType()) {
this.type = other.type;
}
if (other.isSetEvent()) {
this.event = other.event;
}
}
public TWarmUpTabletsRequest deepCopy() {
return new TWarmUpTabletsRequest(this);
}
@Override
public void clear() {
setJobIdIsSet(false);
this.job_id = 0;
setBatchIdIsSet(false);
this.batch_id = 0;
this.job_metas = null;
this.type = null;
this.event = null;
}
public long getJobId() {
return this.job_id;
}
public TWarmUpTabletsRequest 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 TWarmUpTabletsRequest 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 int getJobMetasSize() {
return (this.job_metas == null) ? 0 : this.job_metas.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<TJobMeta> getJobMetasIterator() {
return (this.job_metas == null) ? null : this.job_metas.iterator();
}
public void addToJobMetas(TJobMeta elem) {
if (this.job_metas == null) {
this.job_metas = new java.util.ArrayList<TJobMeta>();
}
this.job_metas.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<TJobMeta> getJobMetas() {
return this.job_metas;
}
public TWarmUpTabletsRequest setJobMetas(@org.apache.thrift.annotation.Nullable java.util.List<TJobMeta> job_metas) {
this.job_metas = job_metas;
return this;
}
public void unsetJobMetas() {
this.job_metas = null;
}
/** Returns true if field job_metas is set (has been assigned a value) and false otherwise */
public boolean isSetJobMetas() {
return this.job_metas != null;
}
public void setJobMetasIsSet(boolean value) {
if (!value) {
this.job_metas = null;
}
}
/**
*
* @see TWarmUpTabletsRequestType
*/
@org.apache.thrift.annotation.Nullable
public TWarmUpTabletsRequestType getType() {
return this.type;
}
/**
*
* @see TWarmUpTabletsRequestType
*/
public TWarmUpTabletsRequest setType(@org.apache.thrift.annotation.Nullable TWarmUpTabletsRequestType type) {
this.type = type;
return this;
}
public void unsetType() {
this.type = null;
}
/** Returns true if field type is set (has been assigned a value) and false otherwise */
public boolean isSetType() {
return this.type != null;
}
public void setTypeIsSet(boolean value) {
if (!value) {
this.type = null;
}
}
/**
*
* @see TWarmUpEventType
*/
@org.apache.thrift.annotation.Nullable
public TWarmUpEventType getEvent() {
return this.event;
}
/**
*
* @see TWarmUpEventType
*/
public TWarmUpTabletsRequest setEvent(@org.apache.thrift.annotation.Nullable TWarmUpEventType event) {
this.event = event;
return this;
}
public void unsetEvent() {
this.event = null;
}
/** Returns true if field event is set (has been assigned a value) and false otherwise */
public boolean isSetEvent() {
return this.event != null;
}
public void setEventIsSet(boolean value) {
if (!value) {
this.event = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
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 JOB_METAS:
if (value == null) {
unsetJobMetas();
} else {
setJobMetas((java.util.List<TJobMeta>)value);
}
break;
case TYPE:
if (value == null) {
unsetType();
} else {
setType((TWarmUpTabletsRequestType)value);
}
break;
case EVENT:
if (value == null) {
unsetEvent();
} else {
setEvent((TWarmUpEventType)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case JOB_ID:
return getJobId();
case BATCH_ID:
return getBatchId();
case JOB_METAS:
return getJobMetas();
case TYPE:
return getType();
case EVENT:
return getEvent();
}
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 JOB_ID:
return isSetJobId();
case BATCH_ID:
return isSetBatchId();
case JOB_METAS:
return isSetJobMetas();
case TYPE:
return isSetType();
case EVENT:
return isSetEvent();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TWarmUpTabletsRequest)
return this.equals((TWarmUpTabletsRequest)that);
return false;
}
public boolean equals(TWarmUpTabletsRequest that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_job_id = true;
boolean that_present_job_id = true;
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;
boolean that_present_batch_id = true;
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_job_metas = true && this.isSetJobMetas();
boolean that_present_job_metas = true && that.isSetJobMetas();
if (this_present_job_metas || that_present_job_metas) {
if (!(this_present_job_metas && that_present_job_metas))
return false;
if (!this.job_metas.equals(that.job_metas))
return false;
}
boolean this_present_type = true && this.isSetType();
boolean that_present_type = true && that.isSetType();
if (this_present_type || that_present_type) {
if (!(this_present_type && that_present_type))
return false;
if (!this.type.equals(that.type))
return false;
}
boolean this_present_event = true && this.isSetEvent();
boolean that_present_event = true && that.isSetEvent();
if (this_present_event || that_present_event) {
if (!(this_present_event && that_present_event))
return false;
if (!this.event.equals(that.event))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(job_id);
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(batch_id);
hashCode = hashCode * 8191 + ((isSetJobMetas()) ? 131071 : 524287);
if (isSetJobMetas())
hashCode = hashCode * 8191 + job_metas.hashCode();
hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287);
if (isSetType())
hashCode = hashCode * 8191 + type.getValue();
hashCode = hashCode * 8191 + ((isSetEvent()) ? 131071 : 524287);
if (isSetEvent())
hashCode = hashCode * 8191 + event.getValue();
return hashCode;
}
@Override
public int compareTo(TWarmUpTabletsRequest other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
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(isSetJobMetas(), other.isSetJobMetas());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetJobMetas()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.job_metas, other.job_metas);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetType(), other.isSetType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetType()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetEvent(), other.isSetEvent());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEvent()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.event, other.event);
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("TWarmUpTabletsRequest(");
boolean first = true;
sb.append("job_id:");
sb.append(this.job_id);
first = false;
if (!first) sb.append(", ");
sb.append("batch_id:");
sb.append(this.batch_id);
first = false;
if (isSetJobMetas()) {
if (!first) sb.append(", ");
sb.append("job_metas:");
if (this.job_metas == null) {
sb.append("null");
} else {
sb.append(this.job_metas);
}
first = false;
}
if (!first) sb.append(", ");
sb.append("type:");
if (this.type == null) {
sb.append("null");
} else {
sb.append(this.type);
}
first = false;
if (isSetEvent()) {
if (!first) sb.append(", ");
sb.append("event:");
if (this.event == null) {
sb.append("null");
} else {
sb.append(this.event);
}
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// alas, we cannot check 'job_id' because it's a primitive and you chose the non-beans generator.
// alas, we cannot check 'batch_id' because it's a primitive and you chose the non-beans generator.
if (type == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'type' 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 TWarmUpTabletsRequestStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TWarmUpTabletsRequestStandardScheme getScheme() {
return new TWarmUpTabletsRequestStandardScheme();
}
}
private static class TWarmUpTabletsRequestStandardScheme extends org.apache.thrift.scheme.StandardScheme<TWarmUpTabletsRequest> {
public void read(org.apache.thrift.protocol.TProtocol iprot, TWarmUpTabletsRequest 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: // 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 2: // 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 3: // JOB_METAS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list130 = iprot.readListBegin();
struct.job_metas = new java.util.ArrayList<TJobMeta>(_list130.size);
@org.apache.thrift.annotation.Nullable TJobMeta _elem131;
for (int _i132 = 0; _i132 < _list130.size; ++_i132)
{
_elem131 = new TJobMeta();
_elem131.read(iprot);
struct.job_metas.add(_elem131);
}
iprot.readListEnd();
}
struct.setJobMetasIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.type = org.apache.doris.thrift.TWarmUpTabletsRequestType.findByValue(iprot.readI32());
struct.setTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // EVENT
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.event = org.apache.doris.thrift.TWarmUpEventType.findByValue(iprot.readI32());
struct.setEventIsSet(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.isSetJobId()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'job_id' was not found in serialized data! Struct: " + toString());
}
if (!struct.isSetBatchId()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'batch_id' was not found in serialized data! Struct: " + toString());
}
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, TWarmUpTabletsRequest struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(JOB_ID_FIELD_DESC);
oprot.writeI64(struct.job_id);
oprot.writeFieldEnd();
oprot.writeFieldBegin(BATCH_ID_FIELD_DESC);
oprot.writeI64(struct.batch_id);
oprot.writeFieldEnd();
if (struct.job_metas != null) {
if (struct.isSetJobMetas()) {
oprot.writeFieldBegin(JOB_METAS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.job_metas.size()));
for (TJobMeta _iter133 : struct.job_metas)
{
_iter133.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.type != null) {
oprot.writeFieldBegin(TYPE_FIELD_DESC);
oprot.writeI32(struct.type.getValue());
oprot.writeFieldEnd();
}
if (struct.event != null) {
if (struct.isSetEvent()) {
oprot.writeFieldBegin(EVENT_FIELD_DESC);
oprot.writeI32(struct.event.getValue());
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TWarmUpTabletsRequestTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TWarmUpTabletsRequestTupleScheme getScheme() {
return new TWarmUpTabletsRequestTupleScheme();
}
}
private static class TWarmUpTabletsRequestTupleScheme extends org.apache.thrift.scheme.TupleScheme<TWarmUpTabletsRequest> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TWarmUpTabletsRequest struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
oprot.writeI64(struct.job_id);
oprot.writeI64(struct.batch_id);
oprot.writeI32(struct.type.getValue());
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetJobMetas()) {
optionals.set(0);
}
if (struct.isSetEvent()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetJobMetas()) {
{
oprot.writeI32(struct.job_metas.size());
for (TJobMeta _iter134 : struct.job_metas)
{
_iter134.write(oprot);
}
}
}
if (struct.isSetEvent()) {
oprot.writeI32(struct.event.getValue());
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TWarmUpTabletsRequest struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
struct.job_id = iprot.readI64();
struct.setJobIdIsSet(true);
struct.batch_id = iprot.readI64();
struct.setBatchIdIsSet(true);
struct.type = org.apache.doris.thrift.TWarmUpTabletsRequestType.findByValue(iprot.readI32());
struct.setTypeIsSet(true);
java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list135 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.job_metas = new java.util.ArrayList<TJobMeta>(_list135.size);
@org.apache.thrift.annotation.Nullable TJobMeta _elem136;
for (int _i137 = 0; _i137 < _list135.size; ++_i137)
{
_elem136 = new TJobMeta();
_elem136.read(iprot);
struct.job_metas.add(_elem136);
}
}
struct.setJobMetasIsSet(true);
}
if (incoming.get(1)) {
struct.event = org.apache.doris.thrift.TWarmUpEventType.findByValue(iprot.readI32());
struct.setEventIsSet(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();
}
}