TRepeatNode.java
/**
* Autogenerated by Thrift Compiler (0.24.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.doris.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
public class TRepeatNode implements org.apache.thrift.TBase<TRepeatNode, TRepeatNode._Fields>, java.io.Serializable, Cloneable, Comparable<TRepeatNode> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TRepeatNode");
private static final org.apache.thrift.protocol.TField OUTPUT_TUPLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("output_tuple_id", org.apache.thrift.protocol.TType.I32, (short)1);
private static final org.apache.thrift.protocol.TField SLOT_ID_SET_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("slot_id_set_list", org.apache.thrift.protocol.TType.LIST, (short)2);
private static final org.apache.thrift.protocol.TField REPEAT_ID_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("repeat_id_list", org.apache.thrift.protocol.TType.LIST, (short)3);
private static final org.apache.thrift.protocol.TField GROUPING_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("grouping_list", org.apache.thrift.protocol.TType.LIST, (short)4);
private static final org.apache.thrift.protocol.TField ALL_SLOT_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("all_slot_ids", org.apache.thrift.protocol.TType.SET, (short)5);
private static final org.apache.thrift.protocol.TField EXPRS_FIELD_DESC = new org.apache.thrift.protocol.TField("exprs", org.apache.thrift.protocol.TType.LIST, (short)6);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TRepeatNodeStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TRepeatNodeTupleSchemeFactory();
public int output_tuple_id; // required
public @org.apache.thrift.annotation.Nullable java.util.List<java.util.Set<java.lang.Integer>> slot_id_set_list; // required
public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> repeat_id_list; // required
public @org.apache.thrift.annotation.Nullable java.util.List<java.util.List<java.lang.Long>> grouping_list; // required
public @org.apache.thrift.annotation.Nullable java.util.Set<java.lang.Integer> all_slot_ids; // required
public @org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TExpr> exprs; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
OUTPUT_TUPLE_ID((short)1, "output_tuple_id"),
SLOT_ID_SET_LIST((short)2, "slot_id_set_list"),
REPEAT_ID_LIST((short)3, "repeat_id_list"),
GROUPING_LIST((short)4, "grouping_list"),
ALL_SLOT_IDS((short)5, "all_slot_ids"),
EXPRS((short)6, "exprs");
private static final java.util.Map<java.lang.String, _Fields> byName = new java.util.HashMap<java.lang.String, _Fields>();
static {
for (_Fields field : java.util.EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // OUTPUT_TUPLE_ID
return OUTPUT_TUPLE_ID;
case 2: // SLOT_ID_SET_LIST
return SLOT_ID_SET_LIST;
case 3: // REPEAT_ID_LIST
return REPEAT_ID_LIST;
case 4: // GROUPING_LIST
return GROUPING_LIST;
case 5: // ALL_SLOT_IDS
return ALL_SLOT_IDS;
case 6: // EXPRS
return EXPRS;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
@org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
}
private final short _thriftId;
private final java.lang.String _fieldName;
_Fields(short thriftId, java.lang.String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
@Override
public short getThriftFieldId() {
return _thriftId;
}
@Override
public java.lang.String getFieldName() {
return _fieldName;
}
}
// isset id assignments
private static final int __OUTPUT_TUPLE_ID_ISSET_ID = 0;
private byte __isset_bitfield = 0;
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.OUTPUT_TUPLE_ID, new org.apache.thrift.meta_data.FieldMetaData("output_tuple_id", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "TTupleId")));
tmpMap.put(_Fields.SLOT_ID_SET_LIST, new org.apache.thrift.meta_data.FieldMetaData("slot_id_set_list", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "TSlotId")))));
tmpMap.put(_Fields.REPEAT_ID_LIST, new org.apache.thrift.meta_data.FieldMetaData("repeat_id_list", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
tmpMap.put(_Fields.GROUPING_LIST, new org.apache.thrift.meta_data.FieldMetaData("grouping_list", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))));
tmpMap.put(_Fields.ALL_SLOT_IDS, new org.apache.thrift.meta_data.FieldMetaData("all_slot_ids", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.SetMetaData(org.apache.thrift.protocol.TType.SET,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "TSlotId"))));
tmpMap.put(_Fields.EXPRS, new org.apache.thrift.meta_data.FieldMetaData("exprs", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.doris.thrift.TExpr.class))));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TRepeatNode.class, metaDataMap);
}
public TRepeatNode() {
}
public TRepeatNode(
int output_tuple_id,
java.util.List<java.util.Set<java.lang.Integer>> slot_id_set_list,
java.util.List<java.lang.Long> repeat_id_list,
java.util.List<java.util.List<java.lang.Long>> grouping_list,
java.util.Set<java.lang.Integer> all_slot_ids,
java.util.List<org.apache.doris.thrift.TExpr> exprs)
{
this();
this.output_tuple_id = output_tuple_id;
setOutputTupleIdIsSet(true);
this.slot_id_set_list = slot_id_set_list;
this.repeat_id_list = repeat_id_list;
this.grouping_list = grouping_list;
this.all_slot_ids = all_slot_ids;
this.exprs = exprs;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TRepeatNode(TRepeatNode other) {
__isset_bitfield = other.__isset_bitfield;
this.output_tuple_id = other.output_tuple_id;
if (other.isSetSlotIdSetList()) {
java.util.List<java.util.Set<java.lang.Integer>> __this__slot_id_set_list = new java.util.ArrayList<java.util.Set<java.lang.Integer>>(other.slot_id_set_list.size());
for (java.util.Set<java.lang.Integer> other_element : other.slot_id_set_list) {
java.util.Set<java.lang.Integer> __this__slot_id_set_list_copy = new java.util.HashSet<java.lang.Integer>(other_element.size());
for (java.lang.Integer other_element_element : other_element) {
__this__slot_id_set_list_copy.add(other_element_element);
}
__this__slot_id_set_list.add(__this__slot_id_set_list_copy);
}
this.slot_id_set_list = __this__slot_id_set_list;
}
if (other.isSetRepeatIdList()) {
java.util.List<java.lang.Long> __this__repeat_id_list = new java.util.ArrayList<java.lang.Long>(other.repeat_id_list);
this.repeat_id_list = __this__repeat_id_list;
}
if (other.isSetGroupingList()) {
java.util.List<java.util.List<java.lang.Long>> __this__grouping_list = new java.util.ArrayList<java.util.List<java.lang.Long>>(other.grouping_list.size());
for (java.util.List<java.lang.Long> other_element : other.grouping_list) {
java.util.List<java.lang.Long> __this__grouping_list_copy = new java.util.ArrayList<java.lang.Long>(other_element);
__this__grouping_list.add(__this__grouping_list_copy);
}
this.grouping_list = __this__grouping_list;
}
if (other.isSetAllSlotIds()) {
java.util.Set<java.lang.Integer> __this__all_slot_ids = new java.util.HashSet<java.lang.Integer>(other.all_slot_ids.size());
for (java.lang.Integer other_element : other.all_slot_ids) {
__this__all_slot_ids.add(other_element);
}
this.all_slot_ids = __this__all_slot_ids;
}
if (other.isSetExprs()) {
java.util.List<org.apache.doris.thrift.TExpr> __this__exprs = new java.util.ArrayList<org.apache.doris.thrift.TExpr>(other.exprs.size());
for (org.apache.doris.thrift.TExpr other_element : other.exprs) {
__this__exprs.add(new org.apache.doris.thrift.TExpr(other_element));
}
this.exprs = __this__exprs;
}
}
@Override
public TRepeatNode deepCopy() {
return new TRepeatNode(this);
}
@Override
public void clear() {
setOutputTupleIdIsSet(false);
this.output_tuple_id = 0;
this.slot_id_set_list = null;
this.repeat_id_list = null;
this.grouping_list = null;
this.all_slot_ids = null;
this.exprs = null;
}
public int getOutputTupleId() {
return this.output_tuple_id;
}
public TRepeatNode setOutputTupleId(int output_tuple_id) {
this.output_tuple_id = output_tuple_id;
setOutputTupleIdIsSet(true);
return this;
}
public void unsetOutputTupleId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __OUTPUT_TUPLE_ID_ISSET_ID);
}
/** Returns true if field output_tuple_id is set (has been assigned a value) and false otherwise */
public boolean isSetOutputTupleId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __OUTPUT_TUPLE_ID_ISSET_ID);
}
public void setOutputTupleIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __OUTPUT_TUPLE_ID_ISSET_ID, value);
}
public int getSlotIdSetListSize() {
return (this.slot_id_set_list == null) ? 0 : this.slot_id_set_list.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<java.util.Set<java.lang.Integer>> getSlotIdSetListIterator() {
return (this.slot_id_set_list == null) ? null : this.slot_id_set_list.iterator();
}
public void addToSlotIdSetList(java.util.Set<java.lang.Integer> elem) {
if (this.slot_id_set_list == null) {
this.slot_id_set_list = new java.util.ArrayList<java.util.Set<java.lang.Integer>>();
}
this.slot_id_set_list.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<java.util.Set<java.lang.Integer>> getSlotIdSetList() {
return this.slot_id_set_list;
}
public TRepeatNode setSlotIdSetList(@org.apache.thrift.annotation.Nullable java.util.List<java.util.Set<java.lang.Integer>> slot_id_set_list) {
this.slot_id_set_list = slot_id_set_list;
return this;
}
public void unsetSlotIdSetList() {
this.slot_id_set_list = null;
}
/** Returns true if field slot_id_set_list is set (has been assigned a value) and false otherwise */
public boolean isSetSlotIdSetList() {
return this.slot_id_set_list != null;
}
public void setSlotIdSetListIsSet(boolean value) {
if (!value) {
this.slot_id_set_list = null;
}
}
public int getRepeatIdListSize() {
return (this.repeat_id_list == null) ? 0 : this.repeat_id_list.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<java.lang.Long> getRepeatIdListIterator() {
return (this.repeat_id_list == null) ? null : this.repeat_id_list.iterator();
}
public void addToRepeatIdList(long elem) {
if (this.repeat_id_list == null) {
this.repeat_id_list = new java.util.ArrayList<java.lang.Long>();
}
this.repeat_id_list.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<java.lang.Long> getRepeatIdList() {
return this.repeat_id_list;
}
public TRepeatNode setRepeatIdList(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> repeat_id_list) {
this.repeat_id_list = repeat_id_list;
return this;
}
public void unsetRepeatIdList() {
this.repeat_id_list = null;
}
/** Returns true if field repeat_id_list is set (has been assigned a value) and false otherwise */
public boolean isSetRepeatIdList() {
return this.repeat_id_list != null;
}
public void setRepeatIdListIsSet(boolean value) {
if (!value) {
this.repeat_id_list = null;
}
}
public int getGroupingListSize() {
return (this.grouping_list == null) ? 0 : this.grouping_list.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<java.util.List<java.lang.Long>> getGroupingListIterator() {
return (this.grouping_list == null) ? null : this.grouping_list.iterator();
}
public void addToGroupingList(java.util.List<java.lang.Long> elem) {
if (this.grouping_list == null) {
this.grouping_list = new java.util.ArrayList<java.util.List<java.lang.Long>>();
}
this.grouping_list.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<java.util.List<java.lang.Long>> getGroupingList() {
return this.grouping_list;
}
public TRepeatNode setGroupingList(@org.apache.thrift.annotation.Nullable java.util.List<java.util.List<java.lang.Long>> grouping_list) {
this.grouping_list = grouping_list;
return this;
}
public void unsetGroupingList() {
this.grouping_list = null;
}
/** Returns true if field grouping_list is set (has been assigned a value) and false otherwise */
public boolean isSetGroupingList() {
return this.grouping_list != null;
}
public void setGroupingListIsSet(boolean value) {
if (!value) {
this.grouping_list = null;
}
}
public int getAllSlotIdsSize() {
return (this.all_slot_ids == null) ? 0 : this.all_slot_ids.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<java.lang.Integer> getAllSlotIdsIterator() {
return (this.all_slot_ids == null) ? null : this.all_slot_ids.iterator();
}
public void addToAllSlotIds(int elem) {
if (this.all_slot_ids == null) {
this.all_slot_ids = new java.util.HashSet<java.lang.Integer>();
}
this.all_slot_ids.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.Set<java.lang.Integer> getAllSlotIds() {
return this.all_slot_ids;
}
public TRepeatNode setAllSlotIds(@org.apache.thrift.annotation.Nullable java.util.Set<java.lang.Integer> all_slot_ids) {
this.all_slot_ids = all_slot_ids;
return this;
}
public void unsetAllSlotIds() {
this.all_slot_ids = null;
}
/** Returns true if field all_slot_ids is set (has been assigned a value) and false otherwise */
public boolean isSetAllSlotIds() {
return this.all_slot_ids != null;
}
public void setAllSlotIdsIsSet(boolean value) {
if (!value) {
this.all_slot_ids = null;
}
}
public int getExprsSize() {
return (this.exprs == null) ? 0 : this.exprs.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<org.apache.doris.thrift.TExpr> getExprsIterator() {
return (this.exprs == null) ? null : this.exprs.iterator();
}
public void addToExprs(org.apache.doris.thrift.TExpr elem) {
if (this.exprs == null) {
this.exprs = new java.util.ArrayList<org.apache.doris.thrift.TExpr>();
}
this.exprs.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<org.apache.doris.thrift.TExpr> getExprs() {
return this.exprs;
}
public TRepeatNode setExprs(@org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TExpr> exprs) {
this.exprs = exprs;
return this;
}
public void unsetExprs() {
this.exprs = null;
}
/** Returns true if field exprs is set (has been assigned a value) and false otherwise */
public boolean isSetExprs() {
return this.exprs != null;
}
public void setExprsIsSet(boolean value) {
if (!value) {
this.exprs = null;
}
}
@Override
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case OUTPUT_TUPLE_ID:
if (value == null) {
unsetOutputTupleId();
} else {
setOutputTupleId((java.lang.Integer)value);
}
break;
case SLOT_ID_SET_LIST:
if (value == null) {
unsetSlotIdSetList();
} else {
setSlotIdSetList((java.util.List<java.util.Set<java.lang.Integer>>)value);
}
break;
case REPEAT_ID_LIST:
if (value == null) {
unsetRepeatIdList();
} else {
setRepeatIdList((java.util.List<java.lang.Long>)value);
}
break;
case GROUPING_LIST:
if (value == null) {
unsetGroupingList();
} else {
setGroupingList((java.util.List<java.util.List<java.lang.Long>>)value);
}
break;
case ALL_SLOT_IDS:
if (value == null) {
unsetAllSlotIds();
} else {
setAllSlotIds((java.util.Set<java.lang.Integer>)value);
}
break;
case EXPRS:
if (value == null) {
unsetExprs();
} else {
setExprs((java.util.List<org.apache.doris.thrift.TExpr>)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
@Override
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case OUTPUT_TUPLE_ID:
return getOutputTupleId();
case SLOT_ID_SET_LIST:
return getSlotIdSetList();
case REPEAT_ID_LIST:
return getRepeatIdList();
case GROUPING_LIST:
return getGroupingList();
case ALL_SLOT_IDS:
return getAllSlotIds();
case EXPRS:
return getExprs();
}
throw new java.lang.IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
@Override
public boolean isSet(_Fields field) {
if (field == null) {
throw new java.lang.IllegalArgumentException();
}
switch (field) {
case OUTPUT_TUPLE_ID:
return isSetOutputTupleId();
case SLOT_ID_SET_LIST:
return isSetSlotIdSetList();
case REPEAT_ID_LIST:
return isSetRepeatIdList();
case GROUPING_LIST:
return isSetGroupingList();
case ALL_SLOT_IDS:
return isSetAllSlotIds();
case EXPRS:
return isSetExprs();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TRepeatNode)
return this.equals((TRepeatNode)that);
return false;
}
public boolean equals(TRepeatNode that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_output_tuple_id = true;
boolean that_present_output_tuple_id = true;
if (this_present_output_tuple_id || that_present_output_tuple_id) {
if (!(this_present_output_tuple_id && that_present_output_tuple_id))
return false;
if (this.output_tuple_id != that.output_tuple_id)
return false;
}
boolean this_present_slot_id_set_list = true && this.isSetSlotIdSetList();
boolean that_present_slot_id_set_list = true && that.isSetSlotIdSetList();
if (this_present_slot_id_set_list || that_present_slot_id_set_list) {
if (!(this_present_slot_id_set_list && that_present_slot_id_set_list))
return false;
if (!this.slot_id_set_list.equals(that.slot_id_set_list))
return false;
}
boolean this_present_repeat_id_list = true && this.isSetRepeatIdList();
boolean that_present_repeat_id_list = true && that.isSetRepeatIdList();
if (this_present_repeat_id_list || that_present_repeat_id_list) {
if (!(this_present_repeat_id_list && that_present_repeat_id_list))
return false;
if (!this.repeat_id_list.equals(that.repeat_id_list))
return false;
}
boolean this_present_grouping_list = true && this.isSetGroupingList();
boolean that_present_grouping_list = true && that.isSetGroupingList();
if (this_present_grouping_list || that_present_grouping_list) {
if (!(this_present_grouping_list && that_present_grouping_list))
return false;
if (!this.grouping_list.equals(that.grouping_list))
return false;
}
boolean this_present_all_slot_ids = true && this.isSetAllSlotIds();
boolean that_present_all_slot_ids = true && that.isSetAllSlotIds();
if (this_present_all_slot_ids || that_present_all_slot_ids) {
if (!(this_present_all_slot_ids && that_present_all_slot_ids))
return false;
if (!this.all_slot_ids.equals(that.all_slot_ids))
return false;
}
boolean this_present_exprs = true && this.isSetExprs();
boolean that_present_exprs = true && that.isSetExprs();
if (this_present_exprs || that_present_exprs) {
if (!(this_present_exprs && that_present_exprs))
return false;
if (!this.exprs.equals(that.exprs))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + output_tuple_id;
hashCode = hashCode * 8191 + ((isSetSlotIdSetList()) ? 131071 : 524287);
if (isSetSlotIdSetList())
hashCode = hashCode * 8191 + slot_id_set_list.hashCode();
hashCode = hashCode * 8191 + ((isSetRepeatIdList()) ? 131071 : 524287);
if (isSetRepeatIdList())
hashCode = hashCode * 8191 + repeat_id_list.hashCode();
hashCode = hashCode * 8191 + ((isSetGroupingList()) ? 131071 : 524287);
if (isSetGroupingList())
hashCode = hashCode * 8191 + grouping_list.hashCode();
hashCode = hashCode * 8191 + ((isSetAllSlotIds()) ? 131071 : 524287);
if (isSetAllSlotIds())
hashCode = hashCode * 8191 + all_slot_ids.hashCode();
hashCode = hashCode * 8191 + ((isSetExprs()) ? 131071 : 524287);
if (isSetExprs())
hashCode = hashCode * 8191 + exprs.hashCode();
return hashCode;
}
@Override
public int compareTo(TRepeatNode other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetOutputTupleId(), other.isSetOutputTupleId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetOutputTupleId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.output_tuple_id, other.output_tuple_id);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetSlotIdSetList(), other.isSetSlotIdSetList());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSlotIdSetList()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.slot_id_set_list, other.slot_id_set_list);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetRepeatIdList(), other.isSetRepeatIdList());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetRepeatIdList()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.repeat_id_list, other.repeat_id_list);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetGroupingList(), other.isSetGroupingList());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetGroupingList()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grouping_list, other.grouping_list);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetAllSlotIds(), other.isSetAllSlotIds());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetAllSlotIds()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.all_slot_ids, other.all_slot_ids);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetExprs(), other.isSetExprs());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetExprs()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exprs, other.exprs);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
@org.apache.thrift.annotation.Nullable
@Override
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
@Override
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
scheme(iprot).read(iprot, this);
}
@Override
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
scheme(oprot).write(oprot, this);
}
@Override
public java.lang.String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder("TRepeatNode(");
boolean first = true;
sb.append("output_tuple_id:");
sb.append(this.output_tuple_id);
first = false;
if (!first) sb.append(", ");
sb.append("slot_id_set_list:");
if (this.slot_id_set_list == null) {
sb.append("null");
} else {
sb.append(this.slot_id_set_list);
}
first = false;
if (!first) sb.append(", ");
sb.append("repeat_id_list:");
if (this.repeat_id_list == null) {
sb.append("null");
} else {
sb.append(this.repeat_id_list);
}
first = false;
if (!first) sb.append(", ");
sb.append("grouping_list:");
if (this.grouping_list == null) {
sb.append("null");
} else {
sb.append(this.grouping_list);
}
first = false;
if (!first) sb.append(", ");
sb.append("all_slot_ids:");
if (this.all_slot_ids == null) {
sb.append("null");
} else {
sb.append(this.all_slot_ids);
}
first = false;
if (!first) sb.append(", ");
sb.append("exprs:");
if (this.exprs == null) {
sb.append("null");
} else {
sb.append(this.exprs);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// alas, we cannot check 'output_tuple_id' because it's a primitive and you chose the non-beans generator.
if (slot_id_set_list == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'slot_id_set_list' was not present! Struct: " + toString());
}
if (repeat_id_list == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'repeat_id_list' was not present! Struct: " + toString());
}
if (grouping_list == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'grouping_list' was not present! Struct: " + toString());
}
if (all_slot_ids == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'all_slot_ids' was not present! Struct: " + toString());
}
if (exprs == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'exprs' was not present! Struct: " + toString());
}
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class TRepeatNodeStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
@Override
public TRepeatNodeStandardScheme getScheme() {
return new TRepeatNodeStandardScheme();
}
}
private static class TRepeatNodeStandardScheme extends org.apache.thrift.scheme.StandardScheme<TRepeatNode> {
@Override
public void read(org.apache.thrift.protocol.TProtocol iprot, TRepeatNode struct) throws org.apache.thrift.TException {
iprot.incrementRecursionDepth();
try {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // OUTPUT_TUPLE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.output_tuple_id = iprot.readI32();
struct.setOutputTupleIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // SLOT_ID_SET_LIST
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list848 = iprot.readListBegin();
struct.slot_id_set_list = new java.util.ArrayList<java.util.Set<java.lang.Integer>>(_list848.size);
@org.apache.thrift.annotation.Nullable java.util.Set<java.lang.Integer> _elem849;
for (int _i850 = 0; _i850 < _list848.size; ++_i850)
{
{
org.apache.thrift.protocol.TSet _set851 = iprot.readSetBegin();
_elem849 = new java.util.HashSet<java.lang.Integer>(2*_set851.size);
int _elem852;
for (int _i853 = 0; _i853 < _set851.size; ++_i853)
{
_elem852 = iprot.readI32();
_elem849.add(_elem852);
}
iprot.readSetEnd();
}
struct.slot_id_set_list.add(_elem849);
}
iprot.readListEnd();
}
struct.setSlotIdSetListIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // REPEAT_ID_LIST
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list854 = iprot.readListBegin();
struct.repeat_id_list = new java.util.ArrayList<java.lang.Long>(_list854.size);
long _elem855;
for (int _i856 = 0; _i856 < _list854.size; ++_i856)
{
_elem855 = iprot.readI64();
struct.repeat_id_list.add(_elem855);
}
iprot.readListEnd();
}
struct.setRepeatIdListIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // GROUPING_LIST
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list857 = iprot.readListBegin();
struct.grouping_list = new java.util.ArrayList<java.util.List<java.lang.Long>>(_list857.size);
@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> _elem858;
for (int _i859 = 0; _i859 < _list857.size; ++_i859)
{
{
org.apache.thrift.protocol.TList _list860 = iprot.readListBegin();
_elem858 = new java.util.ArrayList<java.lang.Long>(_list860.size);
long _elem861;
for (int _i862 = 0; _i862 < _list860.size; ++_i862)
{
_elem861 = iprot.readI64();
_elem858.add(_elem861);
}
iprot.readListEnd();
}
struct.grouping_list.add(_elem858);
}
iprot.readListEnd();
}
struct.setGroupingListIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // ALL_SLOT_IDS
if (schemeField.type == org.apache.thrift.protocol.TType.SET) {
{
org.apache.thrift.protocol.TSet _set863 = iprot.readSetBegin();
struct.all_slot_ids = new java.util.HashSet<java.lang.Integer>(2*_set863.size);
int _elem864;
for (int _i865 = 0; _i865 < _set863.size; ++_i865)
{
_elem864 = iprot.readI32();
struct.all_slot_ids.add(_elem864);
}
iprot.readSetEnd();
}
struct.setAllSlotIdsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // EXPRS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list866 = iprot.readListBegin();
struct.exprs = new java.util.ArrayList<org.apache.doris.thrift.TExpr>(_list866.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TExpr _elem867;
for (int _i868 = 0; _i868 < _list866.size; ++_i868)
{
_elem867 = new org.apache.doris.thrift.TExpr();
_elem867.read(iprot);
struct.exprs.add(_elem867);
}
iprot.readListEnd();
}
struct.setExprsIsSet(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.isSetOutputTupleId()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'output_tuple_id' was not found in serialized data! Struct: " + toString());
}
struct.validate();
} finally {
iprot.decrementRecursionDepth();
}
}
@Override
public void write(org.apache.thrift.protocol.TProtocol oprot, TRepeatNode struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(OUTPUT_TUPLE_ID_FIELD_DESC);
oprot.writeI32(struct.output_tuple_id);
oprot.writeFieldEnd();
if (struct.slot_id_set_list != null) {
oprot.writeFieldBegin(SLOT_ID_SET_LIST_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.SET, struct.slot_id_set_list.size()));
for (java.util.Set<java.lang.Integer> _iter869 : struct.slot_id_set_list)
{
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I32, _iter869.size()));
for (int _iter870 : _iter869)
{
oprot.writeI32(_iter870);
}
oprot.writeSetEnd();
}
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.repeat_id_list != null) {
oprot.writeFieldBegin(REPEAT_ID_LIST_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.repeat_id_list.size()));
for (long _iter871 : struct.repeat_id_list)
{
oprot.writeI64(_iter871);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.grouping_list != null) {
oprot.writeFieldBegin(GROUPING_LIST_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, struct.grouping_list.size()));
for (java.util.List<java.lang.Long> _iter872 : struct.grouping_list)
{
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, _iter872.size()));
for (long _iter873 : _iter872)
{
oprot.writeI64(_iter873);
}
oprot.writeListEnd();
}
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
if (struct.all_slot_ids != null) {
oprot.writeFieldBegin(ALL_SLOT_IDS_FIELD_DESC);
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I32, struct.all_slot_ids.size()));
for (int _iter874 : struct.all_slot_ids)
{
oprot.writeI32(_iter874);
}
oprot.writeSetEnd();
}
oprot.writeFieldEnd();
}
if (struct.exprs != null) {
oprot.writeFieldBegin(EXPRS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.exprs.size()));
for (org.apache.doris.thrift.TExpr _iter875 : struct.exprs)
{
_iter875.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TRepeatNodeTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
@Override
public TRepeatNodeTupleScheme getScheme() {
return new TRepeatNodeTupleScheme();
}
}
private static class TRepeatNodeTupleScheme extends org.apache.thrift.scheme.TupleScheme<TRepeatNode> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TRepeatNode struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
oprot.writeI32(struct.output_tuple_id);
{
oprot.writeI32(struct.slot_id_set_list.size());
for (java.util.Set<java.lang.Integer> _iter876 : struct.slot_id_set_list)
{
{
oprot.writeI32(_iter876.size());
for (int _iter877 : _iter876)
{
oprot.writeI32(_iter877);
}
}
}
}
{
oprot.writeI32(struct.repeat_id_list.size());
for (long _iter878 : struct.repeat_id_list)
{
oprot.writeI64(_iter878);
}
}
{
oprot.writeI32(struct.grouping_list.size());
for (java.util.List<java.lang.Long> _iter879 : struct.grouping_list)
{
{
oprot.writeI32(_iter879.size());
for (long _iter880 : _iter879)
{
oprot.writeI64(_iter880);
}
}
}
}
{
oprot.writeI32(struct.all_slot_ids.size());
for (int _iter881 : struct.all_slot_ids)
{
oprot.writeI32(_iter881);
}
}
{
oprot.writeI32(struct.exprs.size());
for (org.apache.doris.thrift.TExpr _iter882 : struct.exprs)
{
_iter882.write(oprot);
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TRepeatNode struct) throws org.apache.thrift.TException {
prot.incrementRecursionDepth();
try {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
struct.output_tuple_id = iprot.readI32();
struct.setOutputTupleIdIsSet(true);
{
org.apache.thrift.protocol.TList _list883 = iprot.readListBegin(org.apache.thrift.protocol.TType.SET);
struct.slot_id_set_list = new java.util.ArrayList<java.util.Set<java.lang.Integer>>(_list883.size);
@org.apache.thrift.annotation.Nullable java.util.Set<java.lang.Integer> _elem884;
for (int _i885 = 0; _i885 < _list883.size; ++_i885)
{
{
org.apache.thrift.protocol.TSet _set886 = iprot.readSetBegin(org.apache.thrift.protocol.TType.I32);
_elem884 = new java.util.HashSet<java.lang.Integer>(2*_set886.size);
int _elem887;
for (int _i888 = 0; _i888 < _set886.size; ++_i888)
{
_elem887 = iprot.readI32();
_elem884.add(_elem887);
}
}
struct.slot_id_set_list.add(_elem884);
}
}
struct.setSlotIdSetListIsSet(true);
{
org.apache.thrift.protocol.TList _list889 = iprot.readListBegin(org.apache.thrift.protocol.TType.I64);
struct.repeat_id_list = new java.util.ArrayList<java.lang.Long>(_list889.size);
long _elem890;
for (int _i891 = 0; _i891 < _list889.size; ++_i891)
{
_elem890 = iprot.readI64();
struct.repeat_id_list.add(_elem890);
}
}
struct.setRepeatIdListIsSet(true);
{
org.apache.thrift.protocol.TList _list892 = iprot.readListBegin(org.apache.thrift.protocol.TType.LIST);
struct.grouping_list = new java.util.ArrayList<java.util.List<java.lang.Long>>(_list892.size);
@org.apache.thrift.annotation.Nullable java.util.List<java.lang.Long> _elem893;
for (int _i894 = 0; _i894 < _list892.size; ++_i894)
{
{
org.apache.thrift.protocol.TList _list895 = iprot.readListBegin(org.apache.thrift.protocol.TType.I64);
_elem893 = new java.util.ArrayList<java.lang.Long>(_list895.size);
long _elem896;
for (int _i897 = 0; _i897 < _list895.size; ++_i897)
{
_elem896 = iprot.readI64();
_elem893.add(_elem896);
}
}
struct.grouping_list.add(_elem893);
}
}
struct.setGroupingListIsSet(true);
{
org.apache.thrift.protocol.TSet _set898 = iprot.readSetBegin(org.apache.thrift.protocol.TType.I32);
struct.all_slot_ids = new java.util.HashSet<java.lang.Integer>(2*_set898.size);
int _elem899;
for (int _i900 = 0; _i900 < _set898.size; ++_i900)
{
_elem899 = iprot.readI32();
struct.all_slot_ids.add(_elem899);
}
}
struct.setAllSlotIdsIsSet(true);
{
org.apache.thrift.protocol.TList _list901 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.exprs = new java.util.ArrayList<org.apache.doris.thrift.TExpr>(_list901.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TExpr _elem902;
for (int _i903 = 0; _i903 < _list901.size; ++_i903)
{
_elem902 = new org.apache.doris.thrift.TExpr();
_elem902.read(iprot);
struct.exprs.add(_elem902);
}
}
struct.setExprsIsSet(true);
} finally {
prot.decrementRecursionDepth();
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}