TSyncQueryColumns.java
/**
* Autogenerated by Thrift Compiler (0.16.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.doris.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.16.0)", date = "2026-05-14")
public class TSyncQueryColumns implements org.apache.thrift.TBase<TSyncQueryColumns, TSyncQueryColumns._Fields>, java.io.Serializable, Cloneable, Comparable<TSyncQueryColumns> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSyncQueryColumns");
private static final org.apache.thrift.protocol.TField HIGH_PRIORITY_COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("highPriorityColumns", org.apache.thrift.protocol.TType.LIST, (short)1);
private static final org.apache.thrift.protocol.TField MID_PRIORITY_COLUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("midPriorityColumns", org.apache.thrift.protocol.TType.LIST, (short)2);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TSyncQueryColumnsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TSyncQueryColumnsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.util.List<TQueryColumn> highPriorityColumns; // optional
public @org.apache.thrift.annotation.Nullable java.util.List<TQueryColumn> midPriorityColumns; // 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 {
HIGH_PRIORITY_COLUMNS((short)1, "highPriorityColumns"),
MID_PRIORITY_COLUMNS((short)2, "midPriorityColumns");
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: // HIGH_PRIORITY_COLUMNS
return HIGH_PRIORITY_COLUMNS;
case 2: // MID_PRIORITY_COLUMNS
return MID_PRIORITY_COLUMNS;
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 _Fields optionals[] = {_Fields.HIGH_PRIORITY_COLUMNS,_Fields.MID_PRIORITY_COLUMNS};
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.HIGH_PRIORITY_COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("highPriorityColumns", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TQueryColumn.class))));
tmpMap.put(_Fields.MID_PRIORITY_COLUMNS, new org.apache.thrift.meta_data.FieldMetaData("midPriorityColumns", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TQueryColumn.class))));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TSyncQueryColumns.class, metaDataMap);
}
public TSyncQueryColumns() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TSyncQueryColumns(TSyncQueryColumns other) {
if (other.isSetHighPriorityColumns()) {
java.util.List<TQueryColumn> __this__highPriorityColumns = new java.util.ArrayList<TQueryColumn>(other.highPriorityColumns.size());
for (TQueryColumn other_element : other.highPriorityColumns) {
__this__highPriorityColumns.add(new TQueryColumn(other_element));
}
this.highPriorityColumns = __this__highPriorityColumns;
}
if (other.isSetMidPriorityColumns()) {
java.util.List<TQueryColumn> __this__midPriorityColumns = new java.util.ArrayList<TQueryColumn>(other.midPriorityColumns.size());
for (TQueryColumn other_element : other.midPriorityColumns) {
__this__midPriorityColumns.add(new TQueryColumn(other_element));
}
this.midPriorityColumns = __this__midPriorityColumns;
}
}
public TSyncQueryColumns deepCopy() {
return new TSyncQueryColumns(this);
}
@Override
public void clear() {
this.highPriorityColumns = null;
this.midPriorityColumns = null;
}
public int getHighPriorityColumnsSize() {
return (this.highPriorityColumns == null) ? 0 : this.highPriorityColumns.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<TQueryColumn> getHighPriorityColumnsIterator() {
return (this.highPriorityColumns == null) ? null : this.highPriorityColumns.iterator();
}
public void addToHighPriorityColumns(TQueryColumn elem) {
if (this.highPriorityColumns == null) {
this.highPriorityColumns = new java.util.ArrayList<TQueryColumn>();
}
this.highPriorityColumns.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<TQueryColumn> getHighPriorityColumns() {
return this.highPriorityColumns;
}
public TSyncQueryColumns setHighPriorityColumns(@org.apache.thrift.annotation.Nullable java.util.List<TQueryColumn> highPriorityColumns) {
this.highPriorityColumns = highPriorityColumns;
return this;
}
public void unsetHighPriorityColumns() {
this.highPriorityColumns = null;
}
/** Returns true if field highPriorityColumns is set (has been assigned a value) and false otherwise */
public boolean isSetHighPriorityColumns() {
return this.highPriorityColumns != null;
}
public void setHighPriorityColumnsIsSet(boolean value) {
if (!value) {
this.highPriorityColumns = null;
}
}
public int getMidPriorityColumnsSize() {
return (this.midPriorityColumns == null) ? 0 : this.midPriorityColumns.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<TQueryColumn> getMidPriorityColumnsIterator() {
return (this.midPriorityColumns == null) ? null : this.midPriorityColumns.iterator();
}
public void addToMidPriorityColumns(TQueryColumn elem) {
if (this.midPriorityColumns == null) {
this.midPriorityColumns = new java.util.ArrayList<TQueryColumn>();
}
this.midPriorityColumns.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<TQueryColumn> getMidPriorityColumns() {
return this.midPriorityColumns;
}
public TSyncQueryColumns setMidPriorityColumns(@org.apache.thrift.annotation.Nullable java.util.List<TQueryColumn> midPriorityColumns) {
this.midPriorityColumns = midPriorityColumns;
return this;
}
public void unsetMidPriorityColumns() {
this.midPriorityColumns = null;
}
/** Returns true if field midPriorityColumns is set (has been assigned a value) and false otherwise */
public boolean isSetMidPriorityColumns() {
return this.midPriorityColumns != null;
}
public void setMidPriorityColumnsIsSet(boolean value) {
if (!value) {
this.midPriorityColumns = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case HIGH_PRIORITY_COLUMNS:
if (value == null) {
unsetHighPriorityColumns();
} else {
setHighPriorityColumns((java.util.List<TQueryColumn>)value);
}
break;
case MID_PRIORITY_COLUMNS:
if (value == null) {
unsetMidPriorityColumns();
} else {
setMidPriorityColumns((java.util.List<TQueryColumn>)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case HIGH_PRIORITY_COLUMNS:
return getHighPriorityColumns();
case MID_PRIORITY_COLUMNS:
return getMidPriorityColumns();
}
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 HIGH_PRIORITY_COLUMNS:
return isSetHighPriorityColumns();
case MID_PRIORITY_COLUMNS:
return isSetMidPriorityColumns();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TSyncQueryColumns)
return this.equals((TSyncQueryColumns)that);
return false;
}
public boolean equals(TSyncQueryColumns that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_highPriorityColumns = true && this.isSetHighPriorityColumns();
boolean that_present_highPriorityColumns = true && that.isSetHighPriorityColumns();
if (this_present_highPriorityColumns || that_present_highPriorityColumns) {
if (!(this_present_highPriorityColumns && that_present_highPriorityColumns))
return false;
if (!this.highPriorityColumns.equals(that.highPriorityColumns))
return false;
}
boolean this_present_midPriorityColumns = true && this.isSetMidPriorityColumns();
boolean that_present_midPriorityColumns = true && that.isSetMidPriorityColumns();
if (this_present_midPriorityColumns || that_present_midPriorityColumns) {
if (!(this_present_midPriorityColumns && that_present_midPriorityColumns))
return false;
if (!this.midPriorityColumns.equals(that.midPriorityColumns))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetHighPriorityColumns()) ? 131071 : 524287);
if (isSetHighPriorityColumns())
hashCode = hashCode * 8191 + highPriorityColumns.hashCode();
hashCode = hashCode * 8191 + ((isSetMidPriorityColumns()) ? 131071 : 524287);
if (isSetMidPriorityColumns())
hashCode = hashCode * 8191 + midPriorityColumns.hashCode();
return hashCode;
}
@Override
public int compareTo(TSyncQueryColumns other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetHighPriorityColumns(), other.isSetHighPriorityColumns());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetHighPriorityColumns()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.highPriorityColumns, other.highPriorityColumns);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetMidPriorityColumns(), other.isSetMidPriorityColumns());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetMidPriorityColumns()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.midPriorityColumns, other.midPriorityColumns);
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("TSyncQueryColumns(");
boolean first = true;
if (isSetHighPriorityColumns()) {
sb.append("highPriorityColumns:");
if (this.highPriorityColumns == null) {
sb.append("null");
} else {
sb.append(this.highPriorityColumns);
}
first = false;
}
if (isSetMidPriorityColumns()) {
if (!first) sb.append(", ");
sb.append("midPriorityColumns:");
if (this.midPriorityColumns == null) {
sb.append("null");
} else {
sb.append(this.midPriorityColumns);
}
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// 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 {
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 TSyncQueryColumnsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TSyncQueryColumnsStandardScheme getScheme() {
return new TSyncQueryColumnsStandardScheme();
}
}
private static class TSyncQueryColumnsStandardScheme extends org.apache.thrift.scheme.StandardScheme<TSyncQueryColumns> {
public void read(org.apache.thrift.protocol.TProtocol iprot, TSyncQueryColumns 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: // HIGH_PRIORITY_COLUMNS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list912 = iprot.readListBegin();
struct.highPriorityColumns = new java.util.ArrayList<TQueryColumn>(_list912.size);
@org.apache.thrift.annotation.Nullable TQueryColumn _elem913;
for (int _i914 = 0; _i914 < _list912.size; ++_i914)
{
_elem913 = new TQueryColumn();
_elem913.read(iprot);
struct.highPriorityColumns.add(_elem913);
}
iprot.readListEnd();
}
struct.setHighPriorityColumnsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // MID_PRIORITY_COLUMNS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list915 = iprot.readListBegin();
struct.midPriorityColumns = new java.util.ArrayList<TQueryColumn>(_list915.size);
@org.apache.thrift.annotation.Nullable TQueryColumn _elem916;
for (int _i917 = 0; _i917 < _list915.size; ++_i917)
{
_elem916 = new TQueryColumn();
_elem916.read(iprot);
struct.midPriorityColumns.add(_elem916);
}
iprot.readListEnd();
}
struct.setMidPriorityColumnsIsSet(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, TSyncQueryColumns struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.highPriorityColumns != null) {
if (struct.isSetHighPriorityColumns()) {
oprot.writeFieldBegin(HIGH_PRIORITY_COLUMNS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.highPriorityColumns.size()));
for (TQueryColumn _iter918 : struct.highPriorityColumns)
{
_iter918.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.midPriorityColumns != null) {
if (struct.isSetMidPriorityColumns()) {
oprot.writeFieldBegin(MID_PRIORITY_COLUMNS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.midPriorityColumns.size()));
for (TQueryColumn _iter919 : struct.midPriorityColumns)
{
_iter919.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TSyncQueryColumnsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TSyncQueryColumnsTupleScheme getScheme() {
return new TSyncQueryColumnsTupleScheme();
}
}
private static class TSyncQueryColumnsTupleScheme extends org.apache.thrift.scheme.TupleScheme<TSyncQueryColumns> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TSyncQueryColumns struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetHighPriorityColumns()) {
optionals.set(0);
}
if (struct.isSetMidPriorityColumns()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetHighPriorityColumns()) {
{
oprot.writeI32(struct.highPriorityColumns.size());
for (TQueryColumn _iter920 : struct.highPriorityColumns)
{
_iter920.write(oprot);
}
}
}
if (struct.isSetMidPriorityColumns()) {
{
oprot.writeI32(struct.midPriorityColumns.size());
for (TQueryColumn _iter921 : struct.midPriorityColumns)
{
_iter921.write(oprot);
}
}
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TSyncQueryColumns struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
{
org.apache.thrift.protocol.TList _list922 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.highPriorityColumns = new java.util.ArrayList<TQueryColumn>(_list922.size);
@org.apache.thrift.annotation.Nullable TQueryColumn _elem923;
for (int _i924 = 0; _i924 < _list922.size; ++_i924)
{
_elem923 = new TQueryColumn();
_elem923.read(iprot);
struct.highPriorityColumns.add(_elem923);
}
}
struct.setHighPriorityColumnsIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list925 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.midPriorityColumns = new java.util.ArrayList<TQueryColumn>(_list925.size);
@org.apache.thrift.annotation.Nullable TQueryColumn _elem926;
for (int _i927 = 0; _i927 < _list925.size; ++_i927)
{
_elem926 = new TQueryColumn();
_elem926.read(iprot);
struct.midPriorityColumns.add(_elem926);
}
}
struct.setMidPriorityColumnsIsSet(true);
}
}
}
private static <S extends org.apache.thrift.scheme.IScheme> S scheme(org.apache.thrift.protocol.TProtocol proto) {
return (org.apache.thrift.scheme.StandardScheme.class.equals(proto.getScheme()) ? STANDARD_SCHEME_FACTORY : TUPLE_SCHEME_FACTORY).getScheme();
}
}