org.apache.iotdb.mpp.rpc.thrift.TOperatorStatistics 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"})
/**
* BEGIN: Used for EXPLAIN ANALYZE
*
*/
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.14.1)", date = "2024-09-12")
public class TOperatorStatistics 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("TOperatorStatistics");
private static final org.apache.thrift.protocol.TField PLAN_NODE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("planNodeId", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField OPERATOR_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorType", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField TOTAL_EXECUTION_TIME_IN_NANOS_FIELD_DESC = new org.apache.thrift.protocol.TField("totalExecutionTimeInNanos", org.apache.thrift.protocol.TType.I64, (short)3);
private static final org.apache.thrift.protocol.TField NEXT_CALLED_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("nextCalledCount", org.apache.thrift.protocol.TType.I64, (short)4);
private static final org.apache.thrift.protocol.TField HAS_NEXT_CALLED_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("hasNextCalledCount", org.apache.thrift.protocol.TType.I64, (short)5);
private static final org.apache.thrift.protocol.TField SPECIFIED_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("specifiedInfo", org.apache.thrift.protocol.TType.MAP, (short)6);
private static final org.apache.thrift.protocol.TField OUTPUT_ROWS_FIELD_DESC = new org.apache.thrift.protocol.TField("outputRows", org.apache.thrift.protocol.TType.I64, (short)7);
private static final org.apache.thrift.protocol.TField MEMORY_USAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("memoryUsage", org.apache.thrift.protocol.TType.I64, (short)8);
private static final org.apache.thrift.protocol.TField COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("count", org.apache.thrift.protocol.TType.I64, (short)9);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TOperatorStatisticsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TOperatorStatisticsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.lang.String planNodeId; // required
public @org.apache.thrift.annotation.Nullable java.lang.String operatorType; // required
public long totalExecutionTimeInNanos; // required
public long nextCalledCount; // required
public long hasNextCalledCount; // required
public @org.apache.thrift.annotation.Nullable java.util.Map specifiedInfo; // required
public long outputRows; // required
public long memoryUsage; // required
public long count; // 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 {
PLAN_NODE_ID((short)1, "planNodeId"),
OPERATOR_TYPE((short)2, "operatorType"),
TOTAL_EXECUTION_TIME_IN_NANOS((short)3, "totalExecutionTimeInNanos"),
NEXT_CALLED_COUNT((short)4, "nextCalledCount"),
HAS_NEXT_CALLED_COUNT((short)5, "hasNextCalledCount"),
SPECIFIED_INFO((short)6, "specifiedInfo"),
OUTPUT_ROWS((short)7, "outputRows"),
MEMORY_USAGE((short)8, "memoryUsage"),
COUNT((short)9, "count");
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: // PLAN_NODE_ID
return PLAN_NODE_ID;
case 2: // OPERATOR_TYPE
return OPERATOR_TYPE;
case 3: // TOTAL_EXECUTION_TIME_IN_NANOS
return TOTAL_EXECUTION_TIME_IN_NANOS;
case 4: // NEXT_CALLED_COUNT
return NEXT_CALLED_COUNT;
case 5: // HAS_NEXT_CALLED_COUNT
return HAS_NEXT_CALLED_COUNT;
case 6: // SPECIFIED_INFO
return SPECIFIED_INFO;
case 7: // OUTPUT_ROWS
return OUTPUT_ROWS;
case 8: // MEMORY_USAGE
return MEMORY_USAGE;
case 9: // COUNT
return COUNT;
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 __TOTALEXECUTIONTIMEINNANOS_ISSET_ID = 0;
private static final int __NEXTCALLEDCOUNT_ISSET_ID = 1;
private static final int __HASNEXTCALLEDCOUNT_ISSET_ID = 2;
private static final int __OUTPUTROWS_ISSET_ID = 3;
private static final int __MEMORYUSAGE_ISSET_ID = 4;
private static final int __COUNT_ISSET_ID = 5;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.COUNT};
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.PLAN_NODE_ID, new org.apache.thrift.meta_data.FieldMetaData("planNodeId", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.OPERATOR_TYPE, new org.apache.thrift.meta_data.FieldMetaData("operatorType", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.TOTAL_EXECUTION_TIME_IN_NANOS, new org.apache.thrift.meta_data.FieldMetaData("totalExecutionTimeInNanos", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.NEXT_CALLED_COUNT, new org.apache.thrift.meta_data.FieldMetaData("nextCalledCount", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.HAS_NEXT_CALLED_COUNT, new org.apache.thrift.meta_data.FieldMetaData("hasNextCalledCount", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.SPECIFIED_INFO, new org.apache.thrift.meta_data.FieldMetaData("specifiedInfo", org.apache.thrift.TFieldRequirementType.REQUIRED,
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.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.OUTPUT_ROWS, new org.apache.thrift.meta_data.FieldMetaData("outputRows", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.MEMORY_USAGE, new org.apache.thrift.meta_data.FieldMetaData("memoryUsage", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.COUNT, new org.apache.thrift.meta_data.FieldMetaData("count", 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(TOperatorStatistics.class, metaDataMap);
}
public TOperatorStatistics() {
}
public TOperatorStatistics(
java.lang.String planNodeId,
java.lang.String operatorType,
long totalExecutionTimeInNanos,
long nextCalledCount,
long hasNextCalledCount,
java.util.Map specifiedInfo,
long outputRows,
long memoryUsage)
{
this();
this.planNodeId = planNodeId;
this.operatorType = operatorType;
this.totalExecutionTimeInNanos = totalExecutionTimeInNanos;
setTotalExecutionTimeInNanosIsSet(true);
this.nextCalledCount = nextCalledCount;
setNextCalledCountIsSet(true);
this.hasNextCalledCount = hasNextCalledCount;
setHasNextCalledCountIsSet(true);
this.specifiedInfo = specifiedInfo;
this.outputRows = outputRows;
setOutputRowsIsSet(true);
this.memoryUsage = memoryUsage;
setMemoryUsageIsSet(true);
}
/**
* Performs a deep copy on other.
*/
public TOperatorStatistics(TOperatorStatistics other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetPlanNodeId()) {
this.planNodeId = other.planNodeId;
}
if (other.isSetOperatorType()) {
this.operatorType = other.operatorType;
}
this.totalExecutionTimeInNanos = other.totalExecutionTimeInNanos;
this.nextCalledCount = other.nextCalledCount;
this.hasNextCalledCount = other.hasNextCalledCount;
if (other.isSetSpecifiedInfo()) {
java.util.Map __this__specifiedInfo = new java.util.HashMap(other.specifiedInfo);
this.specifiedInfo = __this__specifiedInfo;
}
this.outputRows = other.outputRows;
this.memoryUsage = other.memoryUsage;
this.count = other.count;
}
public TOperatorStatistics deepCopy() {
return new TOperatorStatistics(this);
}
@Override
public void clear() {
this.planNodeId = null;
this.operatorType = null;
setTotalExecutionTimeInNanosIsSet(false);
this.totalExecutionTimeInNanos = 0;
setNextCalledCountIsSet(false);
this.nextCalledCount = 0;
setHasNextCalledCountIsSet(false);
this.hasNextCalledCount = 0;
this.specifiedInfo = null;
setOutputRowsIsSet(false);
this.outputRows = 0;
setMemoryUsageIsSet(false);
this.memoryUsage = 0;
setCountIsSet(false);
this.count = 0;
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getPlanNodeId() {
return this.planNodeId;
}
public TOperatorStatistics setPlanNodeId(@org.apache.thrift.annotation.Nullable java.lang.String planNodeId) {
this.planNodeId = planNodeId;
return this;
}
public void unsetPlanNodeId() {
this.planNodeId = null;
}
/** Returns true if field planNodeId is set (has been assigned a value) and false otherwise */
public boolean isSetPlanNodeId() {
return this.planNodeId != null;
}
public void setPlanNodeIdIsSet(boolean value) {
if (!value) {
this.planNodeId = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getOperatorType() {
return this.operatorType;
}
public TOperatorStatistics setOperatorType(@org.apache.thrift.annotation.Nullable java.lang.String operatorType) {
this.operatorType = operatorType;
return this;
}
public void unsetOperatorType() {
this.operatorType = null;
}
/** Returns true if field operatorType is set (has been assigned a value) and false otherwise */
public boolean isSetOperatorType() {
return this.operatorType != null;
}
public void setOperatorTypeIsSet(boolean value) {
if (!value) {
this.operatorType = null;
}
}
public long getTotalExecutionTimeInNanos() {
return this.totalExecutionTimeInNanos;
}
public TOperatorStatistics setTotalExecutionTimeInNanos(long totalExecutionTimeInNanos) {
this.totalExecutionTimeInNanos = totalExecutionTimeInNanos;
setTotalExecutionTimeInNanosIsSet(true);
return this;
}
public void unsetTotalExecutionTimeInNanos() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TOTALEXECUTIONTIMEINNANOS_ISSET_ID);
}
/** Returns true if field totalExecutionTimeInNanos is set (has been assigned a value) and false otherwise */
public boolean isSetTotalExecutionTimeInNanos() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TOTALEXECUTIONTIMEINNANOS_ISSET_ID);
}
public void setTotalExecutionTimeInNanosIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TOTALEXECUTIONTIMEINNANOS_ISSET_ID, value);
}
public long getNextCalledCount() {
return this.nextCalledCount;
}
public TOperatorStatistics setNextCalledCount(long nextCalledCount) {
this.nextCalledCount = nextCalledCount;
setNextCalledCountIsSet(true);
return this;
}
public void unsetNextCalledCount() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __NEXTCALLEDCOUNT_ISSET_ID);
}
/** Returns true if field nextCalledCount is set (has been assigned a value) and false otherwise */
public boolean isSetNextCalledCount() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NEXTCALLEDCOUNT_ISSET_ID);
}
public void setNextCalledCountIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __NEXTCALLEDCOUNT_ISSET_ID, value);
}
public long getHasNextCalledCount() {
return this.hasNextCalledCount;
}
public TOperatorStatistics setHasNextCalledCount(long hasNextCalledCount) {
this.hasNextCalledCount = hasNextCalledCount;
setHasNextCalledCountIsSet(true);
return this;
}
public void unsetHasNextCalledCount() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __HASNEXTCALLEDCOUNT_ISSET_ID);
}
/** Returns true if field hasNextCalledCount is set (has been assigned a value) and false otherwise */
public boolean isSetHasNextCalledCount() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __HASNEXTCALLEDCOUNT_ISSET_ID);
}
public void setHasNextCalledCountIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __HASNEXTCALLEDCOUNT_ISSET_ID, value);
}
public int getSpecifiedInfoSize() {
return (this.specifiedInfo == null) ? 0 : this.specifiedInfo.size();
}
public void putToSpecifiedInfo(java.lang.String key, java.lang.String val) {
if (this.specifiedInfo == null) {
this.specifiedInfo = new java.util.HashMap();
}
this.specifiedInfo.put(key, val);
}
@org.apache.thrift.annotation.Nullable
public java.util.Map getSpecifiedInfo() {
return this.specifiedInfo;
}
public TOperatorStatistics setSpecifiedInfo(@org.apache.thrift.annotation.Nullable java.util.Map specifiedInfo) {
this.specifiedInfo = specifiedInfo;
return this;
}
public void unsetSpecifiedInfo() {
this.specifiedInfo = null;
}
/** Returns true if field specifiedInfo is set (has been assigned a value) and false otherwise */
public boolean isSetSpecifiedInfo() {
return this.specifiedInfo != null;
}
public void setSpecifiedInfoIsSet(boolean value) {
if (!value) {
this.specifiedInfo = null;
}
}
public long getOutputRows() {
return this.outputRows;
}
public TOperatorStatistics setOutputRows(long outputRows) {
this.outputRows = outputRows;
setOutputRowsIsSet(true);
return this;
}
public void unsetOutputRows() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __OUTPUTROWS_ISSET_ID);
}
/** Returns true if field outputRows is set (has been assigned a value) and false otherwise */
public boolean isSetOutputRows() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __OUTPUTROWS_ISSET_ID);
}
public void setOutputRowsIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __OUTPUTROWS_ISSET_ID, value);
}
public long getMemoryUsage() {
return this.memoryUsage;
}
public TOperatorStatistics setMemoryUsage(long memoryUsage) {
this.memoryUsage = memoryUsage;
setMemoryUsageIsSet(true);
return this;
}
public void unsetMemoryUsage() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __MEMORYUSAGE_ISSET_ID);
}
/** Returns true if field memoryUsage is set (has been assigned a value) and false otherwise */
public boolean isSetMemoryUsage() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __MEMORYUSAGE_ISSET_ID);
}
public void setMemoryUsageIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __MEMORYUSAGE_ISSET_ID, value);
}
public long getCount() {
return this.count;
}
public TOperatorStatistics setCount(long count) {
this.count = count;
setCountIsSet(true);
return this;
}
public void unsetCount() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __COUNT_ISSET_ID);
}
/** Returns true if field count is set (has been assigned a value) and false otherwise */
public boolean isSetCount() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COUNT_ISSET_ID);
}
public void setCountIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __COUNT_ISSET_ID, value);
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case PLAN_NODE_ID:
if (value == null) {
unsetPlanNodeId();
} else {
setPlanNodeId((java.lang.String)value);
}
break;
case OPERATOR_TYPE:
if (value == null) {
unsetOperatorType();
} else {
setOperatorType((java.lang.String)value);
}
break;
case TOTAL_EXECUTION_TIME_IN_NANOS:
if (value == null) {
unsetTotalExecutionTimeInNanos();
} else {
setTotalExecutionTimeInNanos((java.lang.Long)value);
}
break;
case NEXT_CALLED_COUNT:
if (value == null) {
unsetNextCalledCount();
} else {
setNextCalledCount((java.lang.Long)value);
}
break;
case HAS_NEXT_CALLED_COUNT:
if (value == null) {
unsetHasNextCalledCount();
} else {
setHasNextCalledCount((java.lang.Long)value);
}
break;
case SPECIFIED_INFO:
if (value == null) {
unsetSpecifiedInfo();
} else {
setSpecifiedInfo((java.util.Map)value);
}
break;
case OUTPUT_ROWS:
if (value == null) {
unsetOutputRows();
} else {
setOutputRows((java.lang.Long)value);
}
break;
case MEMORY_USAGE:
if (value == null) {
unsetMemoryUsage();
} else {
setMemoryUsage((java.lang.Long)value);
}
break;
case COUNT:
if (value == null) {
unsetCount();
} else {
setCount((java.lang.Long)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case PLAN_NODE_ID:
return getPlanNodeId();
case OPERATOR_TYPE:
return getOperatorType();
case TOTAL_EXECUTION_TIME_IN_NANOS:
return getTotalExecutionTimeInNanos();
case NEXT_CALLED_COUNT:
return getNextCalledCount();
case HAS_NEXT_CALLED_COUNT:
return getHasNextCalledCount();
case SPECIFIED_INFO:
return getSpecifiedInfo();
case OUTPUT_ROWS:
return getOutputRows();
case MEMORY_USAGE:
return getMemoryUsage();
case COUNT:
return getCount();
}
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 PLAN_NODE_ID:
return isSetPlanNodeId();
case OPERATOR_TYPE:
return isSetOperatorType();
case TOTAL_EXECUTION_TIME_IN_NANOS:
return isSetTotalExecutionTimeInNanos();
case NEXT_CALLED_COUNT:
return isSetNextCalledCount();
case HAS_NEXT_CALLED_COUNT:
return isSetHasNextCalledCount();
case SPECIFIED_INFO:
return isSetSpecifiedInfo();
case OUTPUT_ROWS:
return isSetOutputRows();
case MEMORY_USAGE:
return isSetMemoryUsage();
case COUNT:
return isSetCount();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TOperatorStatistics)
return this.equals((TOperatorStatistics)that);
return false;
}
public boolean equals(TOperatorStatistics that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_planNodeId = true && this.isSetPlanNodeId();
boolean that_present_planNodeId = true && that.isSetPlanNodeId();
if (this_present_planNodeId || that_present_planNodeId) {
if (!(this_present_planNodeId && that_present_planNodeId))
return false;
if (!this.planNodeId.equals(that.planNodeId))
return false;
}
boolean this_present_operatorType = true && this.isSetOperatorType();
boolean that_present_operatorType = true && that.isSetOperatorType();
if (this_present_operatorType || that_present_operatorType) {
if (!(this_present_operatorType && that_present_operatorType))
return false;
if (!this.operatorType.equals(that.operatorType))
return false;
}
boolean this_present_totalExecutionTimeInNanos = true;
boolean that_present_totalExecutionTimeInNanos = true;
if (this_present_totalExecutionTimeInNanos || that_present_totalExecutionTimeInNanos) {
if (!(this_present_totalExecutionTimeInNanos && that_present_totalExecutionTimeInNanos))
return false;
if (this.totalExecutionTimeInNanos != that.totalExecutionTimeInNanos)
return false;
}
boolean this_present_nextCalledCount = true;
boolean that_present_nextCalledCount = true;
if (this_present_nextCalledCount || that_present_nextCalledCount) {
if (!(this_present_nextCalledCount && that_present_nextCalledCount))
return false;
if (this.nextCalledCount != that.nextCalledCount)
return false;
}
boolean this_present_hasNextCalledCount = true;
boolean that_present_hasNextCalledCount = true;
if (this_present_hasNextCalledCount || that_present_hasNextCalledCount) {
if (!(this_present_hasNextCalledCount && that_present_hasNextCalledCount))
return false;
if (this.hasNextCalledCount != that.hasNextCalledCount)
return false;
}
boolean this_present_specifiedInfo = true && this.isSetSpecifiedInfo();
boolean that_present_specifiedInfo = true && that.isSetSpecifiedInfo();
if (this_present_specifiedInfo || that_present_specifiedInfo) {
if (!(this_present_specifiedInfo && that_present_specifiedInfo))
return false;
if (!this.specifiedInfo.equals(that.specifiedInfo))
return false;
}
boolean this_present_outputRows = true;
boolean that_present_outputRows = true;
if (this_present_outputRows || that_present_outputRows) {
if (!(this_present_outputRows && that_present_outputRows))
return false;
if (this.outputRows != that.outputRows)
return false;
}
boolean this_present_memoryUsage = true;
boolean that_present_memoryUsage = true;
if (this_present_memoryUsage || that_present_memoryUsage) {
if (!(this_present_memoryUsage && that_present_memoryUsage))
return false;
if (this.memoryUsage != that.memoryUsage)
return false;
}
boolean this_present_count = true && this.isSetCount();
boolean that_present_count = true && that.isSetCount();
if (this_present_count || that_present_count) {
if (!(this_present_count && that_present_count))
return false;
if (this.count != that.count)
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetPlanNodeId()) ? 131071 : 524287);
if (isSetPlanNodeId())
hashCode = hashCode * 8191 + planNodeId.hashCode();
hashCode = hashCode * 8191 + ((isSetOperatorType()) ? 131071 : 524287);
if (isSetOperatorType())
hashCode = hashCode * 8191 + operatorType.hashCode();
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(totalExecutionTimeInNanos);
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(nextCalledCount);
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(hasNextCalledCount);
hashCode = hashCode * 8191 + ((isSetSpecifiedInfo()) ? 131071 : 524287);
if (isSetSpecifiedInfo())
hashCode = hashCode * 8191 + specifiedInfo.hashCode();
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(outputRows);
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(memoryUsage);
hashCode = hashCode * 8191 + ((isSetCount()) ? 131071 : 524287);
if (isSetCount())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(count);
return hashCode;
}
@Override
public int compareTo(TOperatorStatistics other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetPlanNodeId(), other.isSetPlanNodeId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPlanNodeId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.planNodeId, other.planNodeId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetOperatorType(), other.isSetOperatorType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetOperatorType()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorType, other.operatorType);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetTotalExecutionTimeInNanos(), other.isSetTotalExecutionTimeInNanos());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTotalExecutionTimeInNanos()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalExecutionTimeInNanos, other.totalExecutionTimeInNanos);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetNextCalledCount(), other.isSetNextCalledCount());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetNextCalledCount()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nextCalledCount, other.nextCalledCount);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetHasNextCalledCount(), other.isSetHasNextCalledCount());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetHasNextCalledCount()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasNextCalledCount, other.hasNextCalledCount);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetSpecifiedInfo(), other.isSetSpecifiedInfo());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSpecifiedInfo()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.specifiedInfo, other.specifiedInfo);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetOutputRows(), other.isSetOutputRows());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetOutputRows()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.outputRows, other.outputRows);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetMemoryUsage(), other.isSetMemoryUsage());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetMemoryUsage()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.memoryUsage, other.memoryUsage);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetCount(), other.isSetCount());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCount()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.count, other.count);
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("TOperatorStatistics(");
boolean first = true;
sb.append("planNodeId:");
if (this.planNodeId == null) {
sb.append("null");
} else {
sb.append(this.planNodeId);
}
first = false;
if (!first) sb.append(", ");
sb.append("operatorType:");
if (this.operatorType == null) {
sb.append("null");
} else {
sb.append(this.operatorType);
}
first = false;
if (!first) sb.append(", ");
sb.append("totalExecutionTimeInNanos:");
sb.append(this.totalExecutionTimeInNanos);
first = false;
if (!first) sb.append(", ");
sb.append("nextCalledCount:");
sb.append(this.nextCalledCount);
first = false;
if (!first) sb.append(", ");
sb.append("hasNextCalledCount:");
sb.append(this.hasNextCalledCount);
first = false;
if (!first) sb.append(", ");
sb.append("specifiedInfo:");
if (this.specifiedInfo == null) {
sb.append("null");
} else {
sb.append(this.specifiedInfo);
}
first = false;
if (!first) sb.append(", ");
sb.append("outputRows:");
sb.append(this.outputRows);
first = false;
if (!first) sb.append(", ");
sb.append("memoryUsage:");
sb.append(this.memoryUsage);
first = false;
if (isSetCount()) {
if (!first) sb.append(", ");
sb.append("count:");
sb.append(this.count);
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
if (planNodeId == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'planNodeId' was not present! Struct: " + toString());
}
if (operatorType == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'operatorType' was not present! Struct: " + toString());
}
// alas, we cannot check 'totalExecutionTimeInNanos' because it's a primitive and you chose the non-beans generator.
// alas, we cannot check 'nextCalledCount' because it's a primitive and you chose the non-beans generator.
// alas, we cannot check 'hasNextCalledCount' because it's a primitive and you chose the non-beans generator.
if (specifiedInfo == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'specifiedInfo' was not present! Struct: " + toString());
}
// alas, we cannot check 'outputRows' because it's a primitive and you chose the non-beans generator.
// alas, we cannot check 'memoryUsage' because it's a primitive and you chose the non-beans generator.
// 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 TOperatorStatisticsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TOperatorStatisticsStandardScheme getScheme() {
return new TOperatorStatisticsStandardScheme();
}
}
private static class TOperatorStatisticsStandardScheme extends org.apache.thrift.scheme.StandardScheme {
public void read(org.apache.thrift.protocol.TProtocol iprot, TOperatorStatistics 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: // PLAN_NODE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.planNodeId = iprot.readString();
struct.setPlanNodeIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // OPERATOR_TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.operatorType = iprot.readString();
struct.setOperatorTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // TOTAL_EXECUTION_TIME_IN_NANOS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.totalExecutionTimeInNanos = iprot.readI64();
struct.setTotalExecutionTimeInNanosIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // NEXT_CALLED_COUNT
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.nextCalledCount = iprot.readI64();
struct.setNextCalledCountIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // HAS_NEXT_CALLED_COUNT
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.hasNextCalledCount = iprot.readI64();
struct.setHasNextCalledCountIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // SPECIFIED_INFO
if (schemeField.type == org.apache.thrift.protocol.TType.MAP) {
{
org.apache.thrift.protocol.TMap _map626 = iprot.readMapBegin();
struct.specifiedInfo = new java.util.HashMap(2*_map626.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key627;
@org.apache.thrift.annotation.Nullable java.lang.String _val628;
for (int _i629 = 0; _i629 < _map626.size; ++_i629)
{
_key627 = iprot.readString();
_val628 = iprot.readString();
struct.specifiedInfo.put(_key627, _val628);
}
iprot.readMapEnd();
}
struct.setSpecifiedInfoIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // OUTPUT_ROWS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.outputRows = iprot.readI64();
struct.setOutputRowsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // MEMORY_USAGE
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.memoryUsage = iprot.readI64();
struct.setMemoryUsageIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // COUNT
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.count = iprot.readI64();
struct.setCountIsSet(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.isSetTotalExecutionTimeInNanos()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'totalExecutionTimeInNanos' was not found in serialized data! Struct: " + toString());
}
if (!struct.isSetNextCalledCount()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'nextCalledCount' was not found in serialized data! Struct: " + toString());
}
if (!struct.isSetHasNextCalledCount()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'hasNextCalledCount' was not found in serialized data! Struct: " + toString());
}
if (!struct.isSetOutputRows()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'outputRows' was not found in serialized data! Struct: " + toString());
}
if (!struct.isSetMemoryUsage()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'memoryUsage' was not found in serialized data! Struct: " + toString());
}
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, TOperatorStatistics struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.planNodeId != null) {
oprot.writeFieldBegin(PLAN_NODE_ID_FIELD_DESC);
oprot.writeString(struct.planNodeId);
oprot.writeFieldEnd();
}
if (struct.operatorType != null) {
oprot.writeFieldBegin(OPERATOR_TYPE_FIELD_DESC);
oprot.writeString(struct.operatorType);
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(TOTAL_EXECUTION_TIME_IN_NANOS_FIELD_DESC);
oprot.writeI64(struct.totalExecutionTimeInNanos);
oprot.writeFieldEnd();
oprot.writeFieldBegin(NEXT_CALLED_COUNT_FIELD_DESC);
oprot.writeI64(struct.nextCalledCount);
oprot.writeFieldEnd();
oprot.writeFieldBegin(HAS_NEXT_CALLED_COUNT_FIELD_DESC);
oprot.writeI64(struct.hasNextCalledCount);
oprot.writeFieldEnd();
if (struct.specifiedInfo != null) {
oprot.writeFieldBegin(SPECIFIED_INFO_FIELD_DESC);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.specifiedInfo.size()));
for (java.util.Map.Entry _iter630 : struct.specifiedInfo.entrySet())
{
oprot.writeString(_iter630.getKey());
oprot.writeString(_iter630.getValue());
}
oprot.writeMapEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(OUTPUT_ROWS_FIELD_DESC);
oprot.writeI64(struct.outputRows);
oprot.writeFieldEnd();
oprot.writeFieldBegin(MEMORY_USAGE_FIELD_DESC);
oprot.writeI64(struct.memoryUsage);
oprot.writeFieldEnd();
if (struct.isSetCount()) {
oprot.writeFieldBegin(COUNT_FIELD_DESC);
oprot.writeI64(struct.count);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TOperatorStatisticsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TOperatorStatisticsTupleScheme getScheme() {
return new TOperatorStatisticsTupleScheme();
}
}
private static class TOperatorStatisticsTupleScheme extends org.apache.thrift.scheme.TupleScheme {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TOperatorStatistics struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
oprot.writeString(struct.planNodeId);
oprot.writeString(struct.operatorType);
oprot.writeI64(struct.totalExecutionTimeInNanos);
oprot.writeI64(struct.nextCalledCount);
oprot.writeI64(struct.hasNextCalledCount);
{
oprot.writeI32(struct.specifiedInfo.size());
for (java.util.Map.Entry _iter631 : struct.specifiedInfo.entrySet())
{
oprot.writeString(_iter631.getKey());
oprot.writeString(_iter631.getValue());
}
}
oprot.writeI64(struct.outputRows);
oprot.writeI64(struct.memoryUsage);
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetCount()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetCount()) {
oprot.writeI64(struct.count);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TOperatorStatistics struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
struct.planNodeId = iprot.readString();
struct.setPlanNodeIdIsSet(true);
struct.operatorType = iprot.readString();
struct.setOperatorTypeIsSet(true);
struct.totalExecutionTimeInNanos = iprot.readI64();
struct.setTotalExecutionTimeInNanosIsSet(true);
struct.nextCalledCount = iprot.readI64();
struct.setNextCalledCountIsSet(true);
struct.hasNextCalledCount = iprot.readI64();
struct.setHasNextCalledCountIsSet(true);
{
org.apache.thrift.protocol.TMap _map632 = iprot.readMapBegin(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING);
struct.specifiedInfo = new java.util.HashMap(2*_map632.size);
@org.apache.thrift.annotation.Nullable java.lang.String _key633;
@org.apache.thrift.annotation.Nullable java.lang.String _val634;
for (int _i635 = 0; _i635 < _map632.size; ++_i635)
{
_key633 = iprot.readString();
_val634 = iprot.readString();
struct.specifiedInfo.put(_key633, _val634);
}
}
struct.setSpecifiedInfoIsSet(true);
struct.outputRows = iprot.readI64();
struct.setOutputRowsIsSet(true);
struct.memoryUsage = iprot.readI64();
struct.setMemoryUsageIsSet(true);
java.util.BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.count = iprot.readI64();
struct.setCountIsSet(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();
}
}