org.apache.iotdb.mpp.rpc.thrift.TFetchFragmentInstanceStatisticsResp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timechodb-thrift Show documentation
Show all versions of timechodb-thrift Show documentation
RPC (Thrift) framework for client and DataNodes.
The newest version!
/**
* Autogenerated by Thrift Compiler (0.14.1)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.iotdb.mpp.rpc.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.14.1)", date = "2024-09-12")
public class TFetchFragmentInstanceStatisticsResp implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TFetchFragmentInstanceStatisticsResp");
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 FRAGMENT_INSTANCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fragmentInstanceId", org.apache.thrift.protocol.TType.STRUCT, (short)2);
private static final org.apache.thrift.protocol.TField DATA_REGION_FIELD_DESC = new org.apache.thrift.protocol.TField("dataRegion", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final org.apache.thrift.protocol.TField START_TIME_IN_MS_FIELD_DESC = new org.apache.thrift.protocol.TField("startTimeInMS", org.apache.thrift.protocol.TType.I64, (short)4);
private static final org.apache.thrift.protocol.TField END_TIME_IN_MS_FIELD_DESC = new org.apache.thrift.protocol.TField("endTimeInMS", org.apache.thrift.protocol.TType.I64, (short)5);
private static final org.apache.thrift.protocol.TField QUERY_STATISTICS_FIELD_DESC = new org.apache.thrift.protocol.TField("queryStatistics", org.apache.thrift.protocol.TType.STRUCT, (short)6);
private static final org.apache.thrift.protocol.TField OPERATOR_STATISTICS_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorStatisticsMap", org.apache.thrift.protocol.TType.MAP, (short)7);
private static final org.apache.thrift.protocol.TField INIT_DATA_QUERY_SOURCE_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("initDataQuerySourceCost", org.apache.thrift.protocol.TType.I64, (short)8);
private static final org.apache.thrift.protocol.TField SEQ_UNCLOSED_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("seqUnclosedNum", org.apache.thrift.protocol.TType.I64, (short)9);
private static final org.apache.thrift.protocol.TField SEQ_CLOSEDN_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("seqClosednNum", org.apache.thrift.protocol.TType.I64, (short)10);
private static final org.apache.thrift.protocol.TField UNSEQ_CLOSED_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("unseqClosedNum", org.apache.thrift.protocol.TType.I64, (short)11);
private static final org.apache.thrift.protocol.TField UNSEQ_UNCLOSED_NUM_FIELD_DESC = new org.apache.thrift.protocol.TField("unseqUnclosedNum", org.apache.thrift.protocol.TType.I64, (short)12);
private static final org.apache.thrift.protocol.TField READY_QUEUED_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("readyQueuedTime", org.apache.thrift.protocol.TType.I64, (short)13);
private static final org.apache.thrift.protocol.TField BLOCK_QUEUED_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("blockQueuedTime", org.apache.thrift.protocol.TType.I64, (short)14);
private static final org.apache.thrift.protocol.TField IP_FIELD_DESC = new org.apache.thrift.protocol.TField("ip", org.apache.thrift.protocol.TType.STRING, (short)15);
private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.STRING, (short)16);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TFetchFragmentInstanceStatisticsRespStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TFetchFragmentInstanceStatisticsRespTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable org.apache.iotdb.common.rpc.thrift.TSStatus status; // required
public @org.apache.thrift.annotation.Nullable TFragmentInstanceId fragmentInstanceId; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String dataRegion; // optional
public long startTimeInMS; // optional
public long endTimeInMS; // optional
public @org.apache.thrift.annotation.Nullable TQueryStatistics queryStatistics; // optional
public @org.apache.thrift.annotation.Nullable java.util.Map operatorStatisticsMap; // optional
public long initDataQuerySourceCost; // optional
public long seqUnclosedNum; // optional
public long seqClosednNum; // optional
public long unseqClosedNum; // optional
public long unseqUnclosedNum; // optional
public long readyQueuedTime; // optional
public long blockQueuedTime; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String ip; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String state; // 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"),
FRAGMENT_INSTANCE_ID((short)2, "fragmentInstanceId"),
DATA_REGION((short)3, "dataRegion"),
START_TIME_IN_MS((short)4, "startTimeInMS"),
END_TIME_IN_MS((short)5, "endTimeInMS"),
QUERY_STATISTICS((short)6, "queryStatistics"),
OPERATOR_STATISTICS_MAP((short)7, "operatorStatisticsMap"),
INIT_DATA_QUERY_SOURCE_COST((short)8, "initDataQuerySourceCost"),
SEQ_UNCLOSED_NUM((short)9, "seqUnclosedNum"),
SEQ_CLOSEDN_NUM((short)10, "seqClosednNum"),
UNSEQ_CLOSED_NUM((short)11, "unseqClosedNum"),
UNSEQ_UNCLOSED_NUM((short)12, "unseqUnclosedNum"),
READY_QUEUED_TIME((short)13, "readyQueuedTime"),
BLOCK_QUEUED_TIME((short)14, "blockQueuedTime"),
IP((short)15, "ip"),
STATE((short)16, "state");
private static final java.util.Map byName = new java.util.HashMap();
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: // FRAGMENT_INSTANCE_ID
return FRAGMENT_INSTANCE_ID;
case 3: // DATA_REGION
return DATA_REGION;
case 4: // START_TIME_IN_MS
return START_TIME_IN_MS;
case 5: // END_TIME_IN_MS
return END_TIME_IN_MS;
case 6: // QUERY_STATISTICS
return QUERY_STATISTICS;
case 7: // OPERATOR_STATISTICS_MAP
return OPERATOR_STATISTICS_MAP;
case 8: // INIT_DATA_QUERY_SOURCE_COST
return INIT_DATA_QUERY_SOURCE_COST;
case 9: // SEQ_UNCLOSED_NUM
return SEQ_UNCLOSED_NUM;
case 10: // SEQ_CLOSEDN_NUM
return SEQ_CLOSEDN_NUM;
case 11: // UNSEQ_CLOSED_NUM
return UNSEQ_CLOSED_NUM;
case 12: // UNSEQ_UNCLOSED_NUM
return UNSEQ_UNCLOSED_NUM;
case 13: // READY_QUEUED_TIME
return READY_QUEUED_TIME;
case 14: // BLOCK_QUEUED_TIME
return BLOCK_QUEUED_TIME;
case 15: // IP
return IP;
case 16: // STATE
return STATE;
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 __STARTTIMEINMS_ISSET_ID = 0;
private static final int __ENDTIMEINMS_ISSET_ID = 1;
private static final int __INITDATAQUERYSOURCECOST_ISSET_ID = 2;
private static final int __SEQUNCLOSEDNUM_ISSET_ID = 3;
private static final int __SEQCLOSEDNNUM_ISSET_ID = 4;
private static final int __UNSEQCLOSEDNUM_ISSET_ID = 5;
private static final int __UNSEQUNCLOSEDNUM_ISSET_ID = 6;
private static final int __READYQUEUEDTIME_ISSET_ID = 7;
private static final int __BLOCKQUEUEDTIME_ISSET_ID = 8;
private short __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.FRAGMENT_INSTANCE_ID,_Fields.DATA_REGION,_Fields.START_TIME_IN_MS,_Fields.END_TIME_IN_MS,_Fields.QUERY_STATISTICS,_Fields.OPERATOR_STATISTICS_MAP,_Fields.INIT_DATA_QUERY_SOURCE_COST,_Fields.SEQ_UNCLOSED_NUM,_Fields.SEQ_CLOSEDN_NUM,_Fields.UNSEQ_CLOSED_NUM,_Fields.UNSEQ_UNCLOSED_NUM,_Fields.READY_QUEUED_TIME,_Fields.BLOCK_QUEUED_TIME,_Fields.IP,_Fields.STATE};
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.iotdb.common.rpc.thrift.TSStatus.class)));
tmpMap.put(_Fields.FRAGMENT_INSTANCE_ID, new org.apache.thrift.meta_data.FieldMetaData("fragmentInstanceId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TFragmentInstanceId.class)));
tmpMap.put(_Fields.DATA_REGION, new org.apache.thrift.meta_data.FieldMetaData("dataRegion", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.START_TIME_IN_MS, new org.apache.thrift.meta_data.FieldMetaData("startTimeInMS", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.END_TIME_IN_MS, new org.apache.thrift.meta_data.FieldMetaData("endTimeInMS", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.QUERY_STATISTICS, new org.apache.thrift.meta_data.FieldMetaData("queryStatistics", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TQueryStatistics.class)));
tmpMap.put(_Fields.OPERATOR_STATISTICS_MAP, new org.apache.thrift.meta_data.FieldMetaData("operatorStatisticsMap", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING),
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TOperatorStatistics.class))));
tmpMap.put(_Fields.INIT_DATA_QUERY_SOURCE_COST, new org.apache.thrift.meta_data.FieldMetaData("initDataQuerySourceCost", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.SEQ_UNCLOSED_NUM, new org.apache.thrift.meta_data.FieldMetaData("seqUnclosedNum", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.SEQ_CLOSEDN_NUM, new org.apache.thrift.meta_data.FieldMetaData("seqClosednNum", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.UNSEQ_CLOSED_NUM, new org.apache.thrift.meta_data.FieldMetaData("unseqClosedNum", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.UNSEQ_UNCLOSED_NUM, new org.apache.thrift.meta_data.FieldMetaData("unseqUnclosedNum", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.READY_QUEUED_TIME, new org.apache.thrift.meta_data.FieldMetaData("readyQueuedTime", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.BLOCK_QUEUED_TIME, new org.apache.thrift.meta_data.FieldMetaData("blockQueuedTime", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.IP, new org.apache.thrift.meta_data.FieldMetaData("ip", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TFetchFragmentInstanceStatisticsResp.class, metaDataMap);
}
public TFetchFragmentInstanceStatisticsResp() {
}
public TFetchFragmentInstanceStatisticsResp(
org.apache.iotdb.common.rpc.thrift.TSStatus status)
{
this();
this.status = status;
}
/**
* Performs a deep copy on other.
*/
public TFetchFragmentInstanceStatisticsResp(TFetchFragmentInstanceStatisticsResp other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetStatus()) {
this.status = new org.apache.iotdb.common.rpc.thrift.TSStatus(other.status);
}
if (other.isSetFragmentInstanceId()) {
this.fragmentInstanceId = new TFragmentInstanceId(other.fragmentInstanceId);
}
if (other.isSetDataRegion()) {
this.dataRegion = other.dataRegion;
}
this.startTimeInMS = other.startTimeInMS;
this.endTimeInMS = other.endTimeInMS;
if (other.isSetQueryStatistics()) {
this.queryStatistics = new TQueryStatistics(other.queryStatistics);
}
if (other.isSetOperatorStatisticsMap()) {
java.util.Map __this__operatorStatisticsMap = new java.util.HashMap(other.operatorStatisticsMap.size());
for (java.util.Map.Entry other_element : other.operatorStatisticsMap.entrySet()) {
java.lang.String other_element_key = other_element.getKey();
TOperatorStatistics other_element_value = other_element.getValue();
java.lang.String __this__operatorStatisticsMap_copy_key = other_element_key;
TOperatorStatistics __this__operatorStatisticsMap_copy_value = new TOperatorStatistics(other_element_value);
__this__operatorStatisticsMap.put(__this__operatorStatisticsMap_copy_key, __this__operatorStatisticsMap_copy_value);
}
this.operatorStatisticsMap = __this__operatorStatisticsMap;
}
this.initDataQuerySourceCost = other.initDataQuerySourceCost;
this.seqUnclosedNum = other.seqUnclosedNum;
this.seqClosednNum = other.seqClosednNum;
this.unseqClosedNum = other.unseqClosedNum;
this.unseqUnclosedNum = other.unseqUnclosedNum;
this.readyQueuedTime = other.readyQueuedTime;
this.blockQueuedTime = other.blockQueuedTime;
if (other.isSetIp()) {
this.ip = other.ip;
}
if (other.isSetState()) {
this.state = other.state;
}
}
public TFetchFragmentInstanceStatisticsResp deepCopy() {
return new TFetchFragmentInstanceStatisticsResp(this);
}
@Override
public void clear() {
this.status = null;
this.fragmentInstanceId = null;
this.dataRegion = null;
setStartTimeInMSIsSet(false);
this.startTimeInMS = 0;
setEndTimeInMSIsSet(false);
this.endTimeInMS = 0;
this.queryStatistics = null;
this.operatorStatisticsMap = null;
setInitDataQuerySourceCostIsSet(false);
this.initDataQuerySourceCost = 0;
setSeqUnclosedNumIsSet(false);
this.seqUnclosedNum = 0;
setSeqClosednNumIsSet(false);
this.seqClosednNum = 0;
setUnseqClosedNumIsSet(false);
this.unseqClosedNum = 0;
setUnseqUnclosedNumIsSet(false);
this.unseqUnclosedNum = 0;
setReadyQueuedTimeIsSet(false);
this.readyQueuedTime = 0;
setBlockQueuedTimeIsSet(false);
this.blockQueuedTime = 0;
this.ip = null;
this.state = null;
}
@org.apache.thrift.annotation.Nullable
public org.apache.iotdb.common.rpc.thrift.TSStatus getStatus() {
return this.status;
}
public TFetchFragmentInstanceStatisticsResp setStatus(@org.apache.thrift.annotation.Nullable org.apache.iotdb.common.rpc.thrift.TSStatus 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;
}
}
@org.apache.thrift.annotation.Nullable
public TFragmentInstanceId getFragmentInstanceId() {
return this.fragmentInstanceId;
}
public TFetchFragmentInstanceStatisticsResp setFragmentInstanceId(@org.apache.thrift.annotation.Nullable TFragmentInstanceId fragmentInstanceId) {
this.fragmentInstanceId = fragmentInstanceId;
return this;
}
public void unsetFragmentInstanceId() {
this.fragmentInstanceId = null;
}
/** Returns true if field fragmentInstanceId is set (has been assigned a value) and false otherwise */
public boolean isSetFragmentInstanceId() {
return this.fragmentInstanceId != null;
}
public void setFragmentInstanceIdIsSet(boolean value) {
if (!value) {
this.fragmentInstanceId = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getDataRegion() {
return this.dataRegion;
}
public TFetchFragmentInstanceStatisticsResp setDataRegion(@org.apache.thrift.annotation.Nullable java.lang.String dataRegion) {
this.dataRegion = dataRegion;
return this;
}
public void unsetDataRegion() {
this.dataRegion = null;
}
/** Returns true if field dataRegion is set (has been assigned a value) and false otherwise */
public boolean isSetDataRegion() {
return this.dataRegion != null;
}
public void setDataRegionIsSet(boolean value) {
if (!value) {
this.dataRegion = null;
}
}
public long getStartTimeInMS() {
return this.startTimeInMS;
}
public TFetchFragmentInstanceStatisticsResp setStartTimeInMS(long startTimeInMS) {
this.startTimeInMS = startTimeInMS;
setStartTimeInMSIsSet(true);
return this;
}
public void unsetStartTimeInMS() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __STARTTIMEINMS_ISSET_ID);
}
/** Returns true if field startTimeInMS is set (has been assigned a value) and false otherwise */
public boolean isSetStartTimeInMS() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __STARTTIMEINMS_ISSET_ID);
}
public void setStartTimeInMSIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __STARTTIMEINMS_ISSET_ID, value);
}
public long getEndTimeInMS() {
return this.endTimeInMS;
}
public TFetchFragmentInstanceStatisticsResp setEndTimeInMS(long endTimeInMS) {
this.endTimeInMS = endTimeInMS;
setEndTimeInMSIsSet(true);
return this;
}
public void unsetEndTimeInMS() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __ENDTIMEINMS_ISSET_ID);
}
/** Returns true if field endTimeInMS is set (has been assigned a value) and false otherwise */
public boolean isSetEndTimeInMS() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ENDTIMEINMS_ISSET_ID);
}
public void setEndTimeInMSIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __ENDTIMEINMS_ISSET_ID, value);
}
@org.apache.thrift.annotation.Nullable
public TQueryStatistics getQueryStatistics() {
return this.queryStatistics;
}
public TFetchFragmentInstanceStatisticsResp setQueryStatistics(@org.apache.thrift.annotation.Nullable TQueryStatistics queryStatistics) {
this.queryStatistics = queryStatistics;
return this;
}
public void unsetQueryStatistics() {
this.queryStatistics = null;
}
/** Returns true if field queryStatistics is set (has been assigned a value) and false otherwise */
public boolean isSetQueryStatistics() {
return this.queryStatistics != null;
}
public void setQueryStatisticsIsSet(boolean value) {
if (!value) {
this.queryStatistics = null;
}
}
public int getOperatorStatisticsMapSize() {
return (this.operatorStatisticsMap == null) ? 0 : this.operatorStatisticsMap.size();
}
public void putToOperatorStatisticsMap(java.lang.String key, TOperatorStatistics val) {
if (this.operatorStatisticsMap == null) {
this.operatorStatisticsMap = new java.util.HashMap();
}
this.operatorStatisticsMap.put(key, val);
}
@org.apache.thrift.annotation.Nullable
public java.util.Map getOperatorStatisticsMap() {
return this.operatorStatisticsMap;
}
public TFetchFragmentInstanceStatisticsResp setOperatorStatisticsMap(@org.apache.thrift.annotation.Nullable java.util.Map operatorStatisticsMap) {
this.operatorStatisticsMap = operatorStatisticsMap;
return this;
}
public void unsetOperatorStatisticsMap() {
this.operatorStatisticsMap = null;
}
/** Returns true if field operatorStatisticsMap is set (has been assigned a value) and false otherwise */
public boolean isSetOperatorStatisticsMap() {
return this.operatorStatisticsMap != null;
}
public void setOperatorStatisticsMapIsSet(boolean value) {
if (!value) {
this.operatorStatisticsMap = null;
}
}
public long getInitDataQuerySourceCost() {
return this.initDataQuerySourceCost;
}
public TFetchFragmentInstanceStatisticsResp setInitDataQuerySourceCost(long initDataQuerySourceCost) {
this.initDataQuerySourceCost = initDataQuerySourceCost;
setInitDataQuerySourceCostIsSet(true);
return this;
}
public void unsetInitDataQuerySourceCost() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __INITDATAQUERYSOURCECOST_ISSET_ID);
}
/** Returns true if field initDataQuerySourceCost is set (has been assigned a value) and false otherwise */
public boolean isSetInitDataQuerySourceCost() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __INITDATAQUERYSOURCECOST_ISSET_ID);
}
public void setInitDataQuerySourceCostIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __INITDATAQUERYSOURCECOST_ISSET_ID, value);
}
public long getSeqUnclosedNum() {
return this.seqUnclosedNum;
}
public TFetchFragmentInstanceStatisticsResp setSeqUnclosedNum(long seqUnclosedNum) {
this.seqUnclosedNum = seqUnclosedNum;
setSeqUnclosedNumIsSet(true);
return this;
}
public void unsetSeqUnclosedNum() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SEQUNCLOSEDNUM_ISSET_ID);
}
/** Returns true if field seqUnclosedNum is set (has been assigned a value) and false otherwise */
public boolean isSetSeqUnclosedNum() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SEQUNCLOSEDNUM_ISSET_ID);
}
public void setSeqUnclosedNumIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SEQUNCLOSEDNUM_ISSET_ID, value);
}
public long getSeqClosednNum() {
return this.seqClosednNum;
}
public TFetchFragmentInstanceStatisticsResp setSeqClosednNum(long seqClosednNum) {
this.seqClosednNum = seqClosednNum;
setSeqClosednNumIsSet(true);
return this;
}
public void unsetSeqClosednNum() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SEQCLOSEDNNUM_ISSET_ID);
}
/** Returns true if field seqClosednNum is set (has been assigned a value) and false otherwise */
public boolean isSetSeqClosednNum() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SEQCLOSEDNNUM_ISSET_ID);
}
public void setSeqClosednNumIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SEQCLOSEDNNUM_ISSET_ID, value);
}
public long getUnseqClosedNum() {
return this.unseqClosedNum;
}
public TFetchFragmentInstanceStatisticsResp setUnseqClosedNum(long unseqClosedNum) {
this.unseqClosedNum = unseqClosedNum;
setUnseqClosedNumIsSet(true);
return this;
}
public void unsetUnseqClosedNum() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __UNSEQCLOSEDNUM_ISSET_ID);
}
/** Returns true if field unseqClosedNum is set (has been assigned a value) and false otherwise */
public boolean isSetUnseqClosedNum() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __UNSEQCLOSEDNUM_ISSET_ID);
}
public void setUnseqClosedNumIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __UNSEQCLOSEDNUM_ISSET_ID, value);
}
public long getUnseqUnclosedNum() {
return this.unseqUnclosedNum;
}
public TFetchFragmentInstanceStatisticsResp setUnseqUnclosedNum(long unseqUnclosedNum) {
this.unseqUnclosedNum = unseqUnclosedNum;
setUnseqUnclosedNumIsSet(true);
return this;
}
public void unsetUnseqUnclosedNum() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __UNSEQUNCLOSEDNUM_ISSET_ID);
}
/** Returns true if field unseqUnclosedNum is set (has been assigned a value) and false otherwise */
public boolean isSetUnseqUnclosedNum() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __UNSEQUNCLOSEDNUM_ISSET_ID);
}
public void setUnseqUnclosedNumIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __UNSEQUNCLOSEDNUM_ISSET_ID, value);
}
public long getReadyQueuedTime() {
return this.readyQueuedTime;
}
public TFetchFragmentInstanceStatisticsResp setReadyQueuedTime(long readyQueuedTime) {
this.readyQueuedTime = readyQueuedTime;
setReadyQueuedTimeIsSet(true);
return this;
}
public void unsetReadyQueuedTime() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __READYQUEUEDTIME_ISSET_ID);
}
/** Returns true if field readyQueuedTime is set (has been assigned a value) and false otherwise */
public boolean isSetReadyQueuedTime() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __READYQUEUEDTIME_ISSET_ID);
}
public void setReadyQueuedTimeIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __READYQUEUEDTIME_ISSET_ID, value);
}
public long getBlockQueuedTime() {
return this.blockQueuedTime;
}
public TFetchFragmentInstanceStatisticsResp setBlockQueuedTime(long blockQueuedTime) {
this.blockQueuedTime = blockQueuedTime;
setBlockQueuedTimeIsSet(true);
return this;
}
public void unsetBlockQueuedTime() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __BLOCKQUEUEDTIME_ISSET_ID);
}
/** Returns true if field blockQueuedTime is set (has been assigned a value) and false otherwise */
public boolean isSetBlockQueuedTime() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __BLOCKQUEUEDTIME_ISSET_ID);
}
public void setBlockQueuedTimeIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __BLOCKQUEUEDTIME_ISSET_ID, value);
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getIp() {
return this.ip;
}
public TFetchFragmentInstanceStatisticsResp setIp(@org.apache.thrift.annotation.Nullable java.lang.String ip) {
this.ip = ip;
return this;
}
public void unsetIp() {
this.ip = null;
}
/** Returns true if field ip is set (has been assigned a value) and false otherwise */
public boolean isSetIp() {
return this.ip != null;
}
public void setIpIsSet(boolean value) {
if (!value) {
this.ip = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getState() {
return this.state;
}
public TFetchFragmentInstanceStatisticsResp setState(@org.apache.thrift.annotation.Nullable java.lang.String state) {
this.state = state;
return this;
}
public void unsetState() {
this.state = null;
}
/** Returns true if field state is set (has been assigned a value) and false otherwise */
public boolean isSetState() {
return this.state != null;
}
public void setStateIsSet(boolean value) {
if (!value) {
this.state = null;
}
}
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.iotdb.common.rpc.thrift.TSStatus)value);
}
break;
case FRAGMENT_INSTANCE_ID:
if (value == null) {
unsetFragmentInstanceId();
} else {
setFragmentInstanceId((TFragmentInstanceId)value);
}
break;
case DATA_REGION:
if (value == null) {
unsetDataRegion();
} else {
setDataRegion((java.lang.String)value);
}
break;
case START_TIME_IN_MS:
if (value == null) {
unsetStartTimeInMS();
} else {
setStartTimeInMS((java.lang.Long)value);
}
break;
case END_TIME_IN_MS:
if (value == null) {
unsetEndTimeInMS();
} else {
setEndTimeInMS((java.lang.Long)value);
}
break;
case QUERY_STATISTICS:
if (value == null) {
unsetQueryStatistics();
} else {
setQueryStatistics((TQueryStatistics)value);
}
break;
case OPERATOR_STATISTICS_MAP:
if (value == null) {
unsetOperatorStatisticsMap();
} else {
setOperatorStatisticsMap((java.util.Map)value);
}
break;
case INIT_DATA_QUERY_SOURCE_COST:
if (value == null) {
unsetInitDataQuerySourceCost();
} else {
setInitDataQuerySourceCost((java.lang.Long)value);
}
break;
case SEQ_UNCLOSED_NUM:
if (value == null) {
unsetSeqUnclosedNum();
} else {
setSeqUnclosedNum((java.lang.Long)value);
}
break;
case SEQ_CLOSEDN_NUM:
if (value == null) {
unsetSeqClosednNum();
} else {
setSeqClosednNum((java.lang.Long)value);
}
break;
case UNSEQ_CLOSED_NUM:
if (value == null) {
unsetUnseqClosedNum();
} else {
setUnseqClosedNum((java.lang.Long)value);
}
break;
case UNSEQ_UNCLOSED_NUM:
if (value == null) {
unsetUnseqUnclosedNum();
} else {
setUnseqUnclosedNum((java.lang.Long)value);
}
break;
case READY_QUEUED_TIME:
if (value == null) {
unsetReadyQueuedTime();
} else {
setReadyQueuedTime((java.lang.Long)value);
}
break;
case BLOCK_QUEUED_TIME:
if (value == null) {
unsetBlockQueuedTime();
} else {
setBlockQueuedTime((java.lang.Long)value);
}
break;
case IP:
if (value == null) {
unsetIp();
} else {
setIp((java.lang.String)value);
}
break;
case STATE:
if (value == null) {
unsetState();
} else {
setState((java.lang.String)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case STATUS:
return getStatus();
case FRAGMENT_INSTANCE_ID:
return getFragmentInstanceId();
case DATA_REGION:
return getDataRegion();
case START_TIME_IN_MS:
return getStartTimeInMS();
case END_TIME_IN_MS:
return getEndTimeInMS();
case QUERY_STATISTICS:
return getQueryStatistics();
case OPERATOR_STATISTICS_MAP:
return getOperatorStatisticsMap();
case INIT_DATA_QUERY_SOURCE_COST:
return getInitDataQuerySourceCost();
case SEQ_UNCLOSED_NUM:
return getSeqUnclosedNum();
case SEQ_CLOSEDN_NUM:
return getSeqClosednNum();
case UNSEQ_CLOSED_NUM:
return getUnseqClosedNum();
case UNSEQ_UNCLOSED_NUM:
return getUnseqUnclosedNum();
case READY_QUEUED_TIME:
return getReadyQueuedTime();
case BLOCK_QUEUED_TIME:
return getBlockQueuedTime();
case IP:
return getIp();
case STATE:
return getState();
}
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 FRAGMENT_INSTANCE_ID:
return isSetFragmentInstanceId();
case DATA_REGION:
return isSetDataRegion();
case START_TIME_IN_MS:
return isSetStartTimeInMS();
case END_TIME_IN_MS:
return isSetEndTimeInMS();
case QUERY_STATISTICS:
return isSetQueryStatistics();
case OPERATOR_STATISTICS_MAP:
return isSetOperatorStatisticsMap();
case INIT_DATA_QUERY_SOURCE_COST:
return isSetInitDataQuerySourceCost();
case SEQ_UNCLOSED_NUM:
return isSetSeqUnclosedNum();
case SEQ_CLOSEDN_NUM:
return isSetSeqClosednNum();
case UNSEQ_CLOSED_NUM:
return isSetUnseqClosedNum();
case UNSEQ_UNCLOSED_NUM:
return isSetUnseqUnclosedNum();
case READY_QUEUED_TIME:
return isSetReadyQueuedTime();
case BLOCK_QUEUED_TIME:
return isSetBlockQueuedTime();
case IP:
return isSetIp();
case STATE:
return isSetState();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TFetchFragmentInstanceStatisticsResp)
return this.equals((TFetchFragmentInstanceStatisticsResp)that);
return false;
}
public boolean equals(TFetchFragmentInstanceStatisticsResp 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_fragmentInstanceId = true && this.isSetFragmentInstanceId();
boolean that_present_fragmentInstanceId = true && that.isSetFragmentInstanceId();
if (this_present_fragmentInstanceId || that_present_fragmentInstanceId) {
if (!(this_present_fragmentInstanceId && that_present_fragmentInstanceId))
return false;
if (!this.fragmentInstanceId.equals(that.fragmentInstanceId))
return false;
}
boolean this_present_dataRegion = true && this.isSetDataRegion();
boolean that_present_dataRegion = true && that.isSetDataRegion();
if (this_present_dataRegion || that_present_dataRegion) {
if (!(this_present_dataRegion && that_present_dataRegion))
return false;
if (!this.dataRegion.equals(that.dataRegion))
return false;
}
boolean this_present_startTimeInMS = true && this.isSetStartTimeInMS();
boolean that_present_startTimeInMS = true && that.isSetStartTimeInMS();
if (this_present_startTimeInMS || that_present_startTimeInMS) {
if (!(this_present_startTimeInMS && that_present_startTimeInMS))
return false;
if (this.startTimeInMS != that.startTimeInMS)
return false;
}
boolean this_present_endTimeInMS = true && this.isSetEndTimeInMS();
boolean that_present_endTimeInMS = true && that.isSetEndTimeInMS();
if (this_present_endTimeInMS || that_present_endTimeInMS) {
if (!(this_present_endTimeInMS && that_present_endTimeInMS))
return false;
if (this.endTimeInMS != that.endTimeInMS)
return false;
}
boolean this_present_queryStatistics = true && this.isSetQueryStatistics();
boolean that_present_queryStatistics = true && that.isSetQueryStatistics();
if (this_present_queryStatistics || that_present_queryStatistics) {
if (!(this_present_queryStatistics && that_present_queryStatistics))
return false;
if (!this.queryStatistics.equals(that.queryStatistics))
return false;
}
boolean this_present_operatorStatisticsMap = true && this.isSetOperatorStatisticsMap();
boolean that_present_operatorStatisticsMap = true && that.isSetOperatorStatisticsMap();
if (this_present_operatorStatisticsMap || that_present_operatorStatisticsMap) {
if (!(this_present_operatorStatisticsMap && that_present_operatorStatisticsMap))
return false;
if (!this.operatorStatisticsMap.equals(that.operatorStatisticsMap))
return false;
}
boolean this_present_initDataQuerySourceCost = true && this.isSetInitDataQuerySourceCost();
boolean that_present_initDataQuerySourceCost = true && that.isSetInitDataQuerySourceCost();
if (this_present_initDataQuerySourceCost || that_present_initDataQuerySourceCost) {
if (!(this_present_initDataQuerySourceCost && that_present_initDataQuerySourceCost))
return false;
if (this.initDataQuerySourceCost != that.initDataQuerySourceCost)
return false;
}
boolean this_present_seqUnclosedNum = true && this.isSetSeqUnclosedNum();
boolean that_present_seqUnclosedNum = true && that.isSetSeqUnclosedNum();
if (this_present_seqUnclosedNum || that_present_seqUnclosedNum) {
if (!(this_present_seqUnclosedNum && that_present_seqUnclosedNum))
return false;
if (this.seqUnclosedNum != that.seqUnclosedNum)
return false;
}
boolean this_present_seqClosednNum = true && this.isSetSeqClosednNum();
boolean that_present_seqClosednNum = true && that.isSetSeqClosednNum();
if (this_present_seqClosednNum || that_present_seqClosednNum) {
if (!(this_present_seqClosednNum && that_present_seqClosednNum))
return false;
if (this.seqClosednNum != that.seqClosednNum)
return false;
}
boolean this_present_unseqClosedNum = true && this.isSetUnseqClosedNum();
boolean that_present_unseqClosedNum = true && that.isSetUnseqClosedNum();
if (this_present_unseqClosedNum || that_present_unseqClosedNum) {
if (!(this_present_unseqClosedNum && that_present_unseqClosedNum))
return false;
if (this.unseqClosedNum != that.unseqClosedNum)
return false;
}
boolean this_present_unseqUnclosedNum = true && this.isSetUnseqUnclosedNum();
boolean that_present_unseqUnclosedNum = true && that.isSetUnseqUnclosedNum();
if (this_present_unseqUnclosedNum || that_present_unseqUnclosedNum) {
if (!(this_present_unseqUnclosedNum && that_present_unseqUnclosedNum))
return false;
if (this.unseqUnclosedNum != that.unseqUnclosedNum)
return false;
}
boolean this_present_readyQueuedTime = true && this.isSetReadyQueuedTime();
boolean that_present_readyQueuedTime = true && that.isSetReadyQueuedTime();
if (this_present_readyQueuedTime || that_present_readyQueuedTime) {
if (!(this_present_readyQueuedTime && that_present_readyQueuedTime))
return false;
if (this.readyQueuedTime != that.readyQueuedTime)
return false;
}
boolean this_present_blockQueuedTime = true && this.isSetBlockQueuedTime();
boolean that_present_blockQueuedTime = true && that.isSetBlockQueuedTime();
if (this_present_blockQueuedTime || that_present_blockQueuedTime) {
if (!(this_present_blockQueuedTime && that_present_blockQueuedTime))
return false;
if (this.blockQueuedTime != that.blockQueuedTime)
return false;
}
boolean this_present_ip = true && this.isSetIp();
boolean that_present_ip = true && that.isSetIp();
if (this_present_ip || that_present_ip) {
if (!(this_present_ip && that_present_ip))
return false;
if (!this.ip.equals(that.ip))
return false;
}
boolean this_present_state = true && this.isSetState();
boolean that_present_state = true && that.isSetState();
if (this_present_state || that_present_state) {
if (!(this_present_state && that_present_state))
return false;
if (!this.state.equals(that.state))
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 + ((isSetFragmentInstanceId()) ? 131071 : 524287);
if (isSetFragmentInstanceId())
hashCode = hashCode * 8191 + fragmentInstanceId.hashCode();
hashCode = hashCode * 8191 + ((isSetDataRegion()) ? 131071 : 524287);
if (isSetDataRegion())
hashCode = hashCode * 8191 + dataRegion.hashCode();
hashCode = hashCode * 8191 + ((isSetStartTimeInMS()) ? 131071 : 524287);
if (isSetStartTimeInMS())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startTimeInMS);
hashCode = hashCode * 8191 + ((isSetEndTimeInMS()) ? 131071 : 524287);
if (isSetEndTimeInMS())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(endTimeInMS);
hashCode = hashCode * 8191 + ((isSetQueryStatistics()) ? 131071 : 524287);
if (isSetQueryStatistics())
hashCode = hashCode * 8191 + queryStatistics.hashCode();
hashCode = hashCode * 8191 + ((isSetOperatorStatisticsMap()) ? 131071 : 524287);
if (isSetOperatorStatisticsMap())
hashCode = hashCode * 8191 + operatorStatisticsMap.hashCode();
hashCode = hashCode * 8191 + ((isSetInitDataQuerySourceCost()) ? 131071 : 524287);
if (isSetInitDataQuerySourceCost())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(initDataQuerySourceCost);
hashCode = hashCode * 8191 + ((isSetSeqUnclosedNum()) ? 131071 : 524287);
if (isSetSeqUnclosedNum())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(seqUnclosedNum);
hashCode = hashCode * 8191 + ((isSetSeqClosednNum()) ? 131071 : 524287);
if (isSetSeqClosednNum())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(seqClosednNum);
hashCode = hashCode * 8191 + ((isSetUnseqClosedNum()) ? 131071 : 524287);
if (isSetUnseqClosedNum())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(unseqClosedNum);
hashCode = hashCode * 8191 + ((isSetUnseqUnclosedNum()) ? 131071 : 524287);
if (isSetUnseqUnclosedNum())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(unseqUnclosedNum);
hashCode = hashCode * 8191 + ((isSetReadyQueuedTime()) ? 131071 : 524287);
if (isSetReadyQueuedTime())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(readyQueuedTime);
hashCode = hashCode * 8191 + ((isSetBlockQueuedTime()) ? 131071 : 524287);
if (isSetBlockQueuedTime())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(blockQueuedTime);
hashCode = hashCode * 8191 + ((isSetIp()) ? 131071 : 524287);
if (isSetIp())
hashCode = hashCode * 8191 + ip.hashCode();
hashCode = hashCode * 8191 + ((isSetState()) ? 131071 : 524287);
if (isSetState())
hashCode = hashCode * 8191 + state.hashCode();
return hashCode;
}
@Override
public int compareTo(TFetchFragmentInstanceStatisticsResp 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(isSetFragmentInstanceId(), other.isSetFragmentInstanceId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFragmentInstanceId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fragmentInstanceId, other.fragmentInstanceId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetDataRegion(), other.isSetDataRegion());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDataRegion()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataRegion, other.dataRegion);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetStartTimeInMS(), other.isSetStartTimeInMS());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetStartTimeInMS()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startTimeInMS, other.startTimeInMS);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetEndTimeInMS(), other.isSetEndTimeInMS());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEndTimeInMS()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endTimeInMS, other.endTimeInMS);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetQueryStatistics(), other.isSetQueryStatistics());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetQueryStatistics()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.queryStatistics, other.queryStatistics);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetOperatorStatisticsMap(), other.isSetOperatorStatisticsMap());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetOperatorStatisticsMap()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorStatisticsMap, other.operatorStatisticsMap);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetInitDataQuerySourceCost(), other.isSetInitDataQuerySourceCost());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetInitDataQuerySourceCost()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.initDataQuerySourceCost, other.initDataQuerySourceCost);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetSeqUnclosedNum(), other.isSetSeqUnclosedNum());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSeqUnclosedNum()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.seqUnclosedNum, other.seqUnclosedNum);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetSeqClosednNum(), other.isSetSeqClosednNum());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSeqClosednNum()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.seqClosednNum, other.seqClosednNum);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetUnseqClosedNum(), other.isSetUnseqClosedNum());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUnseqClosedNum()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unseqClosedNum, other.unseqClosedNum);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetUnseqUnclosedNum(), other.isSetUnseqUnclosedNum());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUnseqUnclosedNum()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unseqUnclosedNum, other.unseqUnclosedNum);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetReadyQueuedTime(), other.isSetReadyQueuedTime());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetReadyQueuedTime()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.readyQueuedTime, other.readyQueuedTime);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetBlockQueuedTime(), other.isSetBlockQueuedTime());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBlockQueuedTime()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.blockQueuedTime, other.blockQueuedTime);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetIp(), other.isSetIp());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetIp()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ip, other.ip);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetState(), other.isSetState());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetState()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, other.state);
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("TFetchFragmentInstanceStatisticsResp(");
boolean first = true;
sb.append("status:");
if (this.status == null) {
sb.append("null");
} else {
sb.append(this.status);
}
first = false;
if (isSetFragmentInstanceId()) {
if (!first) sb.append(", ");
sb.append("fragmentInstanceId:");
if (this.fragmentInstanceId == null) {
sb.append("null");
} else {
sb.append(this.fragmentInstanceId);
}
first = false;
}
if (isSetDataRegion()) {
if (!first) sb.append(", ");
sb.append("dataRegion:");
if (this.dataRegion == null) {
sb.append("null");
} else {
sb.append(this.dataRegion);
}
first = false;
}
if (isSetStartTimeInMS()) {
if (!first) sb.append(", ");
sb.append("startTimeInMS:");
sb.append(this.startTimeInMS);
first = false;
}
if (isSetEndTimeInMS()) {
if (!first) sb.append(", ");
sb.append("endTimeInMS:");
sb.append(this.endTimeInMS);
first = false;
}
if (isSetQueryStatistics()) {
if (!first) sb.append(", ");
sb.append("queryStatistics:");
if (this.queryStatistics == null) {
sb.append("null");
} else {
sb.append(this.queryStatistics);
}
first = false;
}
if (isSetOperatorStatisticsMap()) {
if (!first) sb.append(", ");
sb.append("operatorStatisticsMap:");
if (this.operatorStatisticsMap == null) {
sb.append("null");
} else {
sb.append(this.operatorStatisticsMap);
}
first = false;
}
if (isSetInitDataQuerySourceCost()) {
if (!first) sb.append(", ");
sb.append("initDataQuerySourceCost:");
sb.append(this.initDataQuerySourceCost);
first = false;
}
if (isSetSeqUnclosedNum()) {
if (!first) sb.append(", ");
sb.append("seqUnclosedNum:");
sb.append(this.seqUnclosedNum);
first = false;
}
if (isSetSeqClosednNum()) {
if (!first) sb.append(", ");
sb.append("seqClosednNum:");
sb.append(this.seqClosednNum);
first = false;
}
if (isSetUnseqClosedNum()) {
if (!first) sb.append(", ");
sb.append("unseqClosedNum:");
sb.append(this.unseqClosedNum);
first = false;
}
if (isSetUnseqUnclosedNum()) {
if (!first) sb.append(", ");
sb.append("unseqUnclosedNum:");
sb.append(this.unseqUnclosedNum);
first = false;
}
if (isSetReadyQueuedTime()) {
if (!first) sb.append(", ");
sb.append("readyQueuedTime:");
sb.append(this.readyQueuedTime);
first = false;
}
if (isSetBlockQueuedTime()) {
if (!first) sb.append(", ");
sb.append("blockQueuedTime:");
sb.append(this.blockQueuedTime);
first = false;
}
if (isSetIp()) {
if (!first) sb.append(", ");
sb.append("ip:");
if (this.ip == null) {
sb.append("null");
} else {
sb.append(this.ip);
}
first = false;
}
if (isSetState()) {
if (!first) sb.append(", ");
sb.append("state:");
if (this.state == null) {
sb.append("null");
} else {
sb.append(this.state);
}
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();
}
if (fragmentInstanceId != null) {
fragmentInstanceId.validate();
}
if (queryStatistics != null) {
queryStatistics.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 TFetchFragmentInstanceStatisticsRespStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TFetchFragmentInstanceStatisticsRespStandardScheme getScheme() {
return new TFetchFragmentInstanceStatisticsRespStandardScheme();
}
}
private static class TFetchFragmentInstanceStatisticsRespStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, TFetchFragmentInstanceStatisticsResp 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.iotdb.common.rpc.thrift.TSStatus();
struct.status.read(iprot);
struct.setStatusIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // FRAGMENT_INSTANCE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.fragmentInstanceId = new TFragmentInstanceId();
struct.fragmentInstanceId.read(iprot);
struct.setFragmentInstanceIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // DATA_REGION
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.dataRegion = iprot.readString();
struct.setDataRegionIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // START_TIME_IN_MS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.startTimeInMS = iprot.readI64();
struct.setStartTimeInMSIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // END_TIME_IN_MS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.endTimeInMS = iprot.readI64();
struct.setEndTimeInMSIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // QUERY_STATISTICS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.queryStatistics = new TQueryStatistics();
struct.queryStatistics.read(iprot);
struct.setQueryStatisticsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // OPERATOR_STATISTICS_MAP
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map636 = iprot.readMapBegin();
struct.operatorStatisticsMap = new java.util.HashMap(2*_map636.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key637;
@org.apache.thrift.annotation.Nullable TOperatorStatistics _val638;
for (int _i639 = 0; _i639 < _map636.size; ++_i639)
{
_key637 = iprot.readString();
_val638 = new TOperatorStatistics();
_val638.read(iprot);
struct.operatorStatisticsMap.put(_key637, _val638);
}
iprot.readMapEnd();
}
struct.setOperatorStatisticsMapIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // INIT_DATA_QUERY_SOURCE_COST
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.initDataQuerySourceCost = iprot.readI64();
struct.setInitDataQuerySourceCostIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // SEQ_UNCLOSED_NUM
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.seqUnclosedNum = iprot.readI64();
struct.setSeqUnclosedNumIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 10: // SEQ_CLOSEDN_NUM
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.seqClosednNum = iprot.readI64();
struct.setSeqClosednNumIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 11: // UNSEQ_CLOSED_NUM
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.unseqClosedNum = iprot.readI64();
struct.setUnseqClosedNumIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 12: // UNSEQ_UNCLOSED_NUM
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.unseqUnclosedNum = iprot.readI64();
struct.setUnseqUnclosedNumIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 13: // READY_QUEUED_TIME
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.readyQueuedTime = iprot.readI64();
struct.setReadyQueuedTimeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 14: // BLOCK_QUEUED_TIME
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.blockQueuedTime = iprot.readI64();
struct.setBlockQueuedTimeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 15: // IP
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.ip = iprot.readString();
struct.setIpIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 16: // STATE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.state = iprot.readString();
struct.setStateIsSet(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, TFetchFragmentInstanceStatisticsResp 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.fragmentInstanceId != null) {
if (struct.isSetFragmentInstanceId()) {
oprot.writeFieldBegin(FRAGMENT_INSTANCE_ID_FIELD_DESC);
struct.fragmentInstanceId.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.dataRegion != null) {
if (struct.isSetDataRegion()) {
oprot.writeFieldBegin(DATA_REGION_FIELD_DESC);
oprot.writeString(struct.dataRegion);
oprot.writeFieldEnd();
}
}
if (struct.isSetStartTimeInMS()) {
oprot.writeFieldBegin(START_TIME_IN_MS_FIELD_DESC);
oprot.writeI64(struct.startTimeInMS);
oprot.writeFieldEnd();
}
if (struct.isSetEndTimeInMS()) {
oprot.writeFieldBegin(END_TIME_IN_MS_FIELD_DESC);
oprot.writeI64(struct.endTimeInMS);
oprot.writeFieldEnd();
}
if (struct.queryStatistics != null) {
if (struct.isSetQueryStatistics()) {
oprot.writeFieldBegin(QUERY_STATISTICS_FIELD_DESC);
struct.queryStatistics.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.operatorStatisticsMap != null) {
if (struct.isSetOperatorStatisticsMap()) {
oprot.writeFieldBegin(OPERATOR_STATISTICS_MAP_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.operatorStatisticsMap.size()));
for (java.util.Map.Entry _iter640 : struct.operatorStatisticsMap.entrySet())
{
oprot.writeString(_iter640.getKey());
_iter640.getValue().write(oprot);
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.isSetInitDataQuerySourceCost()) {
oprot.writeFieldBegin(INIT_DATA_QUERY_SOURCE_COST_FIELD_DESC);
oprot.writeI64(struct.initDataQuerySourceCost);
oprot.writeFieldEnd();
}
if (struct.isSetSeqUnclosedNum()) {
oprot.writeFieldBegin(SEQ_UNCLOSED_NUM_FIELD_DESC);
oprot.writeI64(struct.seqUnclosedNum);
oprot.writeFieldEnd();
}
if (struct.isSetSeqClosednNum()) {
oprot.writeFieldBegin(SEQ_CLOSEDN_NUM_FIELD_DESC);
oprot.writeI64(struct.seqClosednNum);
oprot.writeFieldEnd();
}
if (struct.isSetUnseqClosedNum()) {
oprot.writeFieldBegin(UNSEQ_CLOSED_NUM_FIELD_DESC);
oprot.writeI64(struct.unseqClosedNum);
oprot.writeFieldEnd();
}
if (struct.isSetUnseqUnclosedNum()) {
oprot.writeFieldBegin(UNSEQ_UNCLOSED_NUM_FIELD_DESC);
oprot.writeI64(struct.unseqUnclosedNum);
oprot.writeFieldEnd();
}
if (struct.isSetReadyQueuedTime()) {
oprot.writeFieldBegin(READY_QUEUED_TIME_FIELD_DESC);
oprot.writeI64(struct.readyQueuedTime);
oprot.writeFieldEnd();
}
if (struct.isSetBlockQueuedTime()) {
oprot.writeFieldBegin(BLOCK_QUEUED_TIME_FIELD_DESC);
oprot.writeI64(struct.blockQueuedTime);
oprot.writeFieldEnd();
}
if (struct.ip != null) {
if (struct.isSetIp()) {
oprot.writeFieldBegin(IP_FIELD_DESC);
oprot.writeString(struct.ip);
oprot.writeFieldEnd();
}
}
if (struct.state != null) {
if (struct.isSetState()) {
oprot.writeFieldBegin(STATE_FIELD_DESC);
oprot.writeString(struct.state);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TFetchFragmentInstanceStatisticsRespTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TFetchFragmentInstanceStatisticsRespTupleScheme getScheme() {
return new TFetchFragmentInstanceStatisticsRespTupleScheme();
}
}
private static class TFetchFragmentInstanceStatisticsRespTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TFetchFragmentInstanceStatisticsResp 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.isSetFragmentInstanceId()) {
optionals.set(0);
}
if (struct.isSetDataRegion()) {
optionals.set(1);
}
if (struct.isSetStartTimeInMS()) {
optionals.set(2);
}
if (struct.isSetEndTimeInMS()) {
optionals.set(3);
}
if (struct.isSetQueryStatistics()) {
optionals.set(4);
}
if (struct.isSetOperatorStatisticsMap()) {
optionals.set(5);
}
if (struct.isSetInitDataQuerySourceCost()) {
optionals.set(6);
}
if (struct.isSetSeqUnclosedNum()) {
optionals.set(7);
}
if (struct.isSetSeqClosednNum()) {
optionals.set(8);
}
if (struct.isSetUnseqClosedNum()) {
optionals.set(9);
}
if (struct.isSetUnseqUnclosedNum()) {
optionals.set(10);
}
if (struct.isSetReadyQueuedTime()) {
optionals.set(11);
}
if (struct.isSetBlockQueuedTime()) {
optionals.set(12);
}
if (struct.isSetIp()) {
optionals.set(13);
}
if (struct.isSetState()) {
optionals.set(14);
}
oprot.writeBitSet(optionals, 15);
if (struct.isSetFragmentInstanceId()) {
struct.fragmentInstanceId.write(oprot);
}
if (struct.isSetDataRegion()) {
oprot.writeString(struct.dataRegion);
}
if (struct.isSetStartTimeInMS()) {
oprot.writeI64(struct.startTimeInMS);
}
if (struct.isSetEndTimeInMS()) {
oprot.writeI64(struct.endTimeInMS);
}
if (struct.isSetQueryStatistics()) {
struct.queryStatistics.write(oprot);
}
if (struct.isSetOperatorStatisticsMap()) {
{
oprot.writeI32(struct.operatorStatisticsMap.size());
for (java.util.Map.Entry _iter641 : struct.operatorStatisticsMap.entrySet())
{
oprot.writeString(_iter641.getKey());
_iter641.getValue().write(oprot);
}
}
}
if (struct.isSetInitDataQuerySourceCost()) {
oprot.writeI64(struct.initDataQuerySourceCost);
}
if (struct.isSetSeqUnclosedNum()) {
oprot.writeI64(struct.seqUnclosedNum);
}
if (struct.isSetSeqClosednNum()) {
oprot.writeI64(struct.seqClosednNum);
}
if (struct.isSetUnseqClosedNum()) {
oprot.writeI64(struct.unseqClosedNum);
}
if (struct.isSetUnseqUnclosedNum()) {
oprot.writeI64(struct.unseqUnclosedNum);
}
if (struct.isSetReadyQueuedTime()) {
oprot.writeI64(struct.readyQueuedTime);
}
if (struct.isSetBlockQueuedTime()) {
oprot.writeI64(struct.blockQueuedTime);
}
if (struct.isSetIp()) {
oprot.writeString(struct.ip);
}
if (struct.isSetState()) {
oprot.writeString(struct.state);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TFetchFragmentInstanceStatisticsResp struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
struct.status = new org.apache.iotdb.common.rpc.thrift.TSStatus();
struct.status.read(iprot);
struct.setStatusIsSet(true);
java.util.BitSet incoming = iprot.readBitSet(15);
if (incoming.get(0)) {
struct.fragmentInstanceId = new TFragmentInstanceId();
struct.fragmentInstanceId.read(iprot);
struct.setFragmentInstanceIdIsSet(true);
}
if (incoming.get(1)) {
struct.dataRegion = iprot.readString();
struct.setDataRegionIsSet(true);
}
if (incoming.get(2)) {
struct.startTimeInMS = iprot.readI64();
struct.setStartTimeInMSIsSet(true);
}
if (incoming.get(3)) {
struct.endTimeInMS = iprot.readI64();
struct.setEndTimeInMSIsSet(true);
}
if (incoming.get(4)) {
struct.queryStatistics = new TQueryStatistics();
struct.queryStatistics.read(iprot);
struct.setQueryStatisticsIsSet(true);
}
if (incoming.get(5)) {
{
org.apache.thrift.protocol.TMap _map642 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT);
struct.operatorStatisticsMap = new java.util.HashMap(2*_map642.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key643;
@org.apache.thrift.annotation.Nullable TOperatorStatistics _val644;
for (int _i645 = 0; _i645 < _map642.size; ++_i645)
{
_key643 = iprot.readString();
_val644 = new TOperatorStatistics();
_val644.read(iprot);
struct.operatorStatisticsMap.put(_key643, _val644);
}
}
struct.setOperatorStatisticsMapIsSet(true);
}
if (incoming.get(6)) {
struct.initDataQuerySourceCost = iprot.readI64();
struct.setInitDataQuerySourceCostIsSet(true);
}
if (incoming.get(7)) {
struct.seqUnclosedNum = iprot.readI64();
struct.setSeqUnclosedNumIsSet(true);
}
if (incoming.get(8)) {
struct.seqClosednNum = iprot.readI64();
struct.setSeqClosednNumIsSet(true);
}
if (incoming.get(9)) {
struct.unseqClosedNum = iprot.readI64();
struct.setUnseqClosedNumIsSet(true);
}
if (incoming.get(10)) {
struct.unseqUnclosedNum = iprot.readI64();
struct.setUnseqUnclosedNumIsSet(true);
}
if (incoming.get(11)) {
struct.readyQueuedTime = iprot.readI64();
struct.setReadyQueuedTimeIsSet(true);
}
if (incoming.get(12)) {
struct.blockQueuedTime = iprot.readI64();
struct.setBlockQueuedTimeIsSet(true);
}
if (incoming.get(13)) {
struct.ip = iprot.readString();
struct.setIpIsSet(true);
}
if (incoming.get(14)) {
struct.state = iprot.readString();
struct.setStateIsSet(true);
}
}
}
private static 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();
}
}