TSchemaScanNode.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 TSchemaScanNode implements org.apache.thrift.TBase<TSchemaScanNode, TSchemaScanNode._Fields>, java.io.Serializable, Cloneable, Comparable<TSchemaScanNode> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TSchemaScanNode");
private static final org.apache.thrift.protocol.TField TUPLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tuple_id", org.apache.thrift.protocol.TType.I32, (short)1);
private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("table_name", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final org.apache.thrift.protocol.TField DB_FIELD_DESC = new org.apache.thrift.protocol.TField("db", org.apache.thrift.protocol.TType.STRING, (short)3);
private static final org.apache.thrift.protocol.TField TABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("table", org.apache.thrift.protocol.TType.STRING, (short)4);
private static final org.apache.thrift.protocol.TField WILD_FIELD_DESC = new org.apache.thrift.protocol.TField("wild", org.apache.thrift.protocol.TType.STRING, (short)5);
private static final org.apache.thrift.protocol.TField USER_FIELD_DESC = new org.apache.thrift.protocol.TField("user", org.apache.thrift.protocol.TType.STRING, (short)6);
private static final org.apache.thrift.protocol.TField IP_FIELD_DESC = new org.apache.thrift.protocol.TField("ip", org.apache.thrift.protocol.TType.STRING, (short)7);
private static final org.apache.thrift.protocol.TField PORT_FIELD_DESC = new org.apache.thrift.protocol.TField("port", org.apache.thrift.protocol.TType.I32, (short)8);
private static final org.apache.thrift.protocol.TField THREAD_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("thread_id", org.apache.thrift.protocol.TType.I64, (short)9);
private static final org.apache.thrift.protocol.TField USER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("user_ip", org.apache.thrift.protocol.TType.STRING, (short)10);
private static final org.apache.thrift.protocol.TField CURRENT_USER_IDENT_FIELD_DESC = new org.apache.thrift.protocol.TField("current_user_ident", org.apache.thrift.protocol.TType.STRUCT, (short)11);
private static final org.apache.thrift.protocol.TField SHOW_HIDDEN_CLOUMNS_FIELD_DESC = new org.apache.thrift.protocol.TField("show_hidden_cloumns", org.apache.thrift.protocol.TType.BOOL, (short)12);
private static final org.apache.thrift.protocol.TField CATALOG_FIELD_DESC = new org.apache.thrift.protocol.TField("catalog", org.apache.thrift.protocol.TType.STRING, (short)14);
private static final org.apache.thrift.protocol.TField FE_ADDR_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("fe_addr_list", org.apache.thrift.protocol.TType.LIST, (short)15);
private static final org.apache.thrift.protocol.TField FRONTEND_CONJUNCTS_FIELD_DESC = new org.apache.thrift.protocol.TField("frontend_conjuncts", org.apache.thrift.protocol.TType.STRING, (short)16);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TSchemaScanNodeStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TSchemaScanNodeTupleSchemeFactory();
public int tuple_id; // required
public @org.apache.thrift.annotation.Nullable java.lang.String table_name; // required
public @org.apache.thrift.annotation.Nullable java.lang.String db; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String table; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String wild; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String user; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String ip; // optional
public int port; // optional
public long thread_id; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String user_ip; // optional
public @org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TUserIdentity current_user_ident; // optional
public boolean show_hidden_cloumns; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String catalog; // optional
public @org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TNetworkAddress> fe_addr_list; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String frontend_conjuncts; // 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 {
TUPLE_ID((short)1, "tuple_id"),
TABLE_NAME((short)2, "table_name"),
DB((short)3, "db"),
TABLE((short)4, "table"),
WILD((short)5, "wild"),
USER((short)6, "user"),
IP((short)7, "ip"),
PORT((short)8, "port"),
THREAD_ID((short)9, "thread_id"),
USER_IP((short)10, "user_ip"),
CURRENT_USER_IDENT((short)11, "current_user_ident"),
SHOW_HIDDEN_CLOUMNS((short)12, "show_hidden_cloumns"),
CATALOG((short)14, "catalog"),
FE_ADDR_LIST((short)15, "fe_addr_list"),
FRONTEND_CONJUNCTS((short)16, "frontend_conjuncts");
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: // TUPLE_ID
return TUPLE_ID;
case 2: // TABLE_NAME
return TABLE_NAME;
case 3: // DB
return DB;
case 4: // TABLE
return TABLE;
case 5: // WILD
return WILD;
case 6: // USER
return USER;
case 7: // IP
return IP;
case 8: // PORT
return PORT;
case 9: // THREAD_ID
return THREAD_ID;
case 10: // USER_IP
return USER_IP;
case 11: // CURRENT_USER_IDENT
return CURRENT_USER_IDENT;
case 12: // SHOW_HIDDEN_CLOUMNS
return SHOW_HIDDEN_CLOUMNS;
case 14: // CATALOG
return CATALOG;
case 15: // FE_ADDR_LIST
return FE_ADDR_LIST;
case 16: // FRONTEND_CONJUNCTS
return FRONTEND_CONJUNCTS;
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 __TUPLE_ID_ISSET_ID = 0;
private static final int __PORT_ISSET_ID = 1;
private static final int __THREAD_ID_ISSET_ID = 2;
private static final int __SHOW_HIDDEN_CLOUMNS_ISSET_ID = 3;
private byte __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.DB,_Fields.TABLE,_Fields.WILD,_Fields.USER,_Fields.IP,_Fields.PORT,_Fields.THREAD_ID,_Fields.USER_IP,_Fields.CURRENT_USER_IDENT,_Fields.SHOW_HIDDEN_CLOUMNS,_Fields.CATALOG,_Fields.FE_ADDR_LIST,_Fields.FRONTEND_CONJUNCTS};
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.TUPLE_ID, new org.apache.thrift.meta_data.FieldMetaData("tuple_id", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32 , "TTupleId")));
tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("table_name", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.DB, new org.apache.thrift.meta_data.FieldMetaData("db", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.TABLE, new org.apache.thrift.meta_data.FieldMetaData("table", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.WILD, new org.apache.thrift.meta_data.FieldMetaData("wild", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.USER, new org.apache.thrift.meta_data.FieldMetaData("user", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.IP, new org.apache.thrift.meta_data.FieldMetaData("ip", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
tmpMap.put(_Fields.THREAD_ID, new org.apache.thrift.meta_data.FieldMetaData("thread_id", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.USER_IP, new org.apache.thrift.meta_data.FieldMetaData("user_ip", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.CURRENT_USER_IDENT, new org.apache.thrift.meta_data.FieldMetaData("current_user_ident", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, org.apache.doris.thrift.TUserIdentity.class)));
tmpMap.put(_Fields.SHOW_HIDDEN_CLOUMNS, new org.apache.thrift.meta_data.FieldMetaData("show_hidden_cloumns", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.CATALOG, new org.apache.thrift.meta_data.FieldMetaData("catalog", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.FE_ADDR_LIST, new org.apache.thrift.meta_data.FieldMetaData("fe_addr_list", 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, org.apache.doris.thrift.TNetworkAddress.class))));
tmpMap.put(_Fields.FRONTEND_CONJUNCTS, new org.apache.thrift.meta_data.FieldMetaData("frontend_conjuncts", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TSchemaScanNode.class, metaDataMap);
}
public TSchemaScanNode() {
this.show_hidden_cloumns = false;
}
public TSchemaScanNode(
int tuple_id,
java.lang.String table_name)
{
this();
this.tuple_id = tuple_id;
setTupleIdIsSet(true);
this.table_name = table_name;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TSchemaScanNode(TSchemaScanNode other) {
__isset_bitfield = other.__isset_bitfield;
this.tuple_id = other.tuple_id;
if (other.isSetTableName()) {
this.table_name = other.table_name;
}
if (other.isSetDb()) {
this.db = other.db;
}
if (other.isSetTable()) {
this.table = other.table;
}
if (other.isSetWild()) {
this.wild = other.wild;
}
if (other.isSetUser()) {
this.user = other.user;
}
if (other.isSetIp()) {
this.ip = other.ip;
}
this.port = other.port;
this.thread_id = other.thread_id;
if (other.isSetUserIp()) {
this.user_ip = other.user_ip;
}
if (other.isSetCurrentUserIdent()) {
this.current_user_ident = new org.apache.doris.thrift.TUserIdentity(other.current_user_ident);
}
this.show_hidden_cloumns = other.show_hidden_cloumns;
if (other.isSetCatalog()) {
this.catalog = other.catalog;
}
if (other.isSetFeAddrList()) {
java.util.List<org.apache.doris.thrift.TNetworkAddress> __this__fe_addr_list = new java.util.ArrayList<org.apache.doris.thrift.TNetworkAddress>(other.fe_addr_list.size());
for (org.apache.doris.thrift.TNetworkAddress other_element : other.fe_addr_list) {
__this__fe_addr_list.add(new org.apache.doris.thrift.TNetworkAddress(other_element));
}
this.fe_addr_list = __this__fe_addr_list;
}
if (other.isSetFrontendConjuncts()) {
this.frontend_conjuncts = other.frontend_conjuncts;
}
}
public TSchemaScanNode deepCopy() {
return new TSchemaScanNode(this);
}
@Override
public void clear() {
setTupleIdIsSet(false);
this.tuple_id = 0;
this.table_name = null;
this.db = null;
this.table = null;
this.wild = null;
this.user = null;
this.ip = null;
setPortIsSet(false);
this.port = 0;
setThreadIdIsSet(false);
this.thread_id = 0;
this.user_ip = null;
this.current_user_ident = null;
this.show_hidden_cloumns = false;
this.catalog = null;
this.fe_addr_list = null;
this.frontend_conjuncts = null;
}
public int getTupleId() {
return this.tuple_id;
}
public TSchemaScanNode setTupleId(int tuple_id) {
this.tuple_id = tuple_id;
setTupleIdIsSet(true);
return this;
}
public void unsetTupleId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TUPLE_ID_ISSET_ID);
}
/** Returns true if field tuple_id is set (has been assigned a value) and false otherwise */
public boolean isSetTupleId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TUPLE_ID_ISSET_ID);
}
public void setTupleIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TUPLE_ID_ISSET_ID, value);
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getTableName() {
return this.table_name;
}
public TSchemaScanNode setTableName(@org.apache.thrift.annotation.Nullable java.lang.String table_name) {
this.table_name = table_name;
return this;
}
public void unsetTableName() {
this.table_name = null;
}
/** Returns true if field table_name is set (has been assigned a value) and false otherwise */
public boolean isSetTableName() {
return this.table_name != null;
}
public void setTableNameIsSet(boolean value) {
if (!value) {
this.table_name = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getDb() {
return this.db;
}
public TSchemaScanNode setDb(@org.apache.thrift.annotation.Nullable java.lang.String db) {
this.db = db;
return this;
}
public void unsetDb() {
this.db = null;
}
/** Returns true if field db is set (has been assigned a value) and false otherwise */
public boolean isSetDb() {
return this.db != null;
}
public void setDbIsSet(boolean value) {
if (!value) {
this.db = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getTable() {
return this.table;
}
public TSchemaScanNode setTable(@org.apache.thrift.annotation.Nullable java.lang.String table) {
this.table = table;
return this;
}
public void unsetTable() {
this.table = null;
}
/** Returns true if field table is set (has been assigned a value) and false otherwise */
public boolean isSetTable() {
return this.table != null;
}
public void setTableIsSet(boolean value) {
if (!value) {
this.table = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getWild() {
return this.wild;
}
public TSchemaScanNode setWild(@org.apache.thrift.annotation.Nullable java.lang.String wild) {
this.wild = wild;
return this;
}
public void unsetWild() {
this.wild = null;
}
/** Returns true if field wild is set (has been assigned a value) and false otherwise */
public boolean isSetWild() {
return this.wild != null;
}
public void setWildIsSet(boolean value) {
if (!value) {
this.wild = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getUser() {
return this.user;
}
public TSchemaScanNode setUser(@org.apache.thrift.annotation.Nullable java.lang.String user) {
this.user = user;
return this;
}
public void unsetUser() {
this.user = null;
}
/** Returns true if field user is set (has been assigned a value) and false otherwise */
public boolean isSetUser() {
return this.user != null;
}
public void setUserIsSet(boolean value) {
if (!value) {
this.user = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getIp() {
return this.ip;
}
public TSchemaScanNode setIp(@org.apache.thrift.annotation.Nullable java.lang.String ip) {
this.ip = ip;
return this;
}
public void unsetIp() {
this.ip = null;
}
/** Returns true if field ip is set (has been assigned a value) and false otherwise */
public boolean isSetIp() {
return this.ip != null;
}
public void setIpIsSet(boolean value) {
if (!value) {
this.ip = null;
}
}
public int getPort() {
return this.port;
}
public TSchemaScanNode setPort(int port) {
this.port = port;
setPortIsSet(true);
return this;
}
public void unsetPort() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __PORT_ISSET_ID);
}
/** Returns true if field port is set (has been assigned a value) and false otherwise */
public boolean isSetPort() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __PORT_ISSET_ID);
}
public void setPortIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __PORT_ISSET_ID, value);
}
public long getThreadId() {
return this.thread_id;
}
public TSchemaScanNode setThreadId(long thread_id) {
this.thread_id = thread_id;
setThreadIdIsSet(true);
return this;
}
public void unsetThreadId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __THREAD_ID_ISSET_ID);
}
/** Returns true if field thread_id is set (has been assigned a value) and false otherwise */
public boolean isSetThreadId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __THREAD_ID_ISSET_ID);
}
public void setThreadIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __THREAD_ID_ISSET_ID, value);
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getUserIp() {
return this.user_ip;
}
public TSchemaScanNode setUserIp(@org.apache.thrift.annotation.Nullable java.lang.String user_ip) {
this.user_ip = user_ip;
return this;
}
public void unsetUserIp() {
this.user_ip = null;
}
/** Returns true if field user_ip is set (has been assigned a value) and false otherwise */
public boolean isSetUserIp() {
return this.user_ip != null;
}
public void setUserIpIsSet(boolean value) {
if (!value) {
this.user_ip = null;
}
}
@org.apache.thrift.annotation.Nullable
public org.apache.doris.thrift.TUserIdentity getCurrentUserIdent() {
return this.current_user_ident;
}
public TSchemaScanNode setCurrentUserIdent(@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TUserIdentity current_user_ident) {
this.current_user_ident = current_user_ident;
return this;
}
public void unsetCurrentUserIdent() {
this.current_user_ident = null;
}
/** Returns true if field current_user_ident is set (has been assigned a value) and false otherwise */
public boolean isSetCurrentUserIdent() {
return this.current_user_ident != null;
}
public void setCurrentUserIdentIsSet(boolean value) {
if (!value) {
this.current_user_ident = null;
}
}
public boolean isShowHiddenCloumns() {
return this.show_hidden_cloumns;
}
public TSchemaScanNode setShowHiddenCloumns(boolean show_hidden_cloumns) {
this.show_hidden_cloumns = show_hidden_cloumns;
setShowHiddenCloumnsIsSet(true);
return this;
}
public void unsetShowHiddenCloumns() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SHOW_HIDDEN_CLOUMNS_ISSET_ID);
}
/** Returns true if field show_hidden_cloumns is set (has been assigned a value) and false otherwise */
public boolean isSetShowHiddenCloumns() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SHOW_HIDDEN_CLOUMNS_ISSET_ID);
}
public void setShowHiddenCloumnsIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SHOW_HIDDEN_CLOUMNS_ISSET_ID, value);
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getCatalog() {
return this.catalog;
}
public TSchemaScanNode setCatalog(@org.apache.thrift.annotation.Nullable java.lang.String catalog) {
this.catalog = catalog;
return this;
}
public void unsetCatalog() {
this.catalog = null;
}
/** Returns true if field catalog is set (has been assigned a value) and false otherwise */
public boolean isSetCatalog() {
return this.catalog != null;
}
public void setCatalogIsSet(boolean value) {
if (!value) {
this.catalog = null;
}
}
public int getFeAddrListSize() {
return (this.fe_addr_list == null) ? 0 : this.fe_addr_list.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<org.apache.doris.thrift.TNetworkAddress> getFeAddrListIterator() {
return (this.fe_addr_list == null) ? null : this.fe_addr_list.iterator();
}
public void addToFeAddrList(org.apache.doris.thrift.TNetworkAddress elem) {
if (this.fe_addr_list == null) {
this.fe_addr_list = new java.util.ArrayList<org.apache.doris.thrift.TNetworkAddress>();
}
this.fe_addr_list.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<org.apache.doris.thrift.TNetworkAddress> getFeAddrList() {
return this.fe_addr_list;
}
public TSchemaScanNode setFeAddrList(@org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TNetworkAddress> fe_addr_list) {
this.fe_addr_list = fe_addr_list;
return this;
}
public void unsetFeAddrList() {
this.fe_addr_list = null;
}
/** Returns true if field fe_addr_list is set (has been assigned a value) and false otherwise */
public boolean isSetFeAddrList() {
return this.fe_addr_list != null;
}
public void setFeAddrListIsSet(boolean value) {
if (!value) {
this.fe_addr_list = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getFrontendConjuncts() {
return this.frontend_conjuncts;
}
public TSchemaScanNode setFrontendConjuncts(@org.apache.thrift.annotation.Nullable java.lang.String frontend_conjuncts) {
this.frontend_conjuncts = frontend_conjuncts;
return this;
}
public void unsetFrontendConjuncts() {
this.frontend_conjuncts = null;
}
/** Returns true if field frontend_conjuncts is set (has been assigned a value) and false otherwise */
public boolean isSetFrontendConjuncts() {
return this.frontend_conjuncts != null;
}
public void setFrontendConjunctsIsSet(boolean value) {
if (!value) {
this.frontend_conjuncts = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case TUPLE_ID:
if (value == null) {
unsetTupleId();
} else {
setTupleId((java.lang.Integer)value);
}
break;
case TABLE_NAME:
if (value == null) {
unsetTableName();
} else {
setTableName((java.lang.String)value);
}
break;
case DB:
if (value == null) {
unsetDb();
} else {
setDb((java.lang.String)value);
}
break;
case TABLE:
if (value == null) {
unsetTable();
} else {
setTable((java.lang.String)value);
}
break;
case WILD:
if (value == null) {
unsetWild();
} else {
setWild((java.lang.String)value);
}
break;
case USER:
if (value == null) {
unsetUser();
} else {
setUser((java.lang.String)value);
}
break;
case IP:
if (value == null) {
unsetIp();
} else {
setIp((java.lang.String)value);
}
break;
case PORT:
if (value == null) {
unsetPort();
} else {
setPort((java.lang.Integer)value);
}
break;
case THREAD_ID:
if (value == null) {
unsetThreadId();
} else {
setThreadId((java.lang.Long)value);
}
break;
case USER_IP:
if (value == null) {
unsetUserIp();
} else {
setUserIp((java.lang.String)value);
}
break;
case CURRENT_USER_IDENT:
if (value == null) {
unsetCurrentUserIdent();
} else {
setCurrentUserIdent((org.apache.doris.thrift.TUserIdentity)value);
}
break;
case SHOW_HIDDEN_CLOUMNS:
if (value == null) {
unsetShowHiddenCloumns();
} else {
setShowHiddenCloumns((java.lang.Boolean)value);
}
break;
case CATALOG:
if (value == null) {
unsetCatalog();
} else {
setCatalog((java.lang.String)value);
}
break;
case FE_ADDR_LIST:
if (value == null) {
unsetFeAddrList();
} else {
setFeAddrList((java.util.List<org.apache.doris.thrift.TNetworkAddress>)value);
}
break;
case FRONTEND_CONJUNCTS:
if (value == null) {
unsetFrontendConjuncts();
} else {
setFrontendConjuncts((java.lang.String)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case TUPLE_ID:
return getTupleId();
case TABLE_NAME:
return getTableName();
case DB:
return getDb();
case TABLE:
return getTable();
case WILD:
return getWild();
case USER:
return getUser();
case IP:
return getIp();
case PORT:
return getPort();
case THREAD_ID:
return getThreadId();
case USER_IP:
return getUserIp();
case CURRENT_USER_IDENT:
return getCurrentUserIdent();
case SHOW_HIDDEN_CLOUMNS:
return isShowHiddenCloumns();
case CATALOG:
return getCatalog();
case FE_ADDR_LIST:
return getFeAddrList();
case FRONTEND_CONJUNCTS:
return getFrontendConjuncts();
}
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 TUPLE_ID:
return isSetTupleId();
case TABLE_NAME:
return isSetTableName();
case DB:
return isSetDb();
case TABLE:
return isSetTable();
case WILD:
return isSetWild();
case USER:
return isSetUser();
case IP:
return isSetIp();
case PORT:
return isSetPort();
case THREAD_ID:
return isSetThreadId();
case USER_IP:
return isSetUserIp();
case CURRENT_USER_IDENT:
return isSetCurrentUserIdent();
case SHOW_HIDDEN_CLOUMNS:
return isSetShowHiddenCloumns();
case CATALOG:
return isSetCatalog();
case FE_ADDR_LIST:
return isSetFeAddrList();
case FRONTEND_CONJUNCTS:
return isSetFrontendConjuncts();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TSchemaScanNode)
return this.equals((TSchemaScanNode)that);
return false;
}
public boolean equals(TSchemaScanNode that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_tuple_id = true;
boolean that_present_tuple_id = true;
if (this_present_tuple_id || that_present_tuple_id) {
if (!(this_present_tuple_id && that_present_tuple_id))
return false;
if (this.tuple_id != that.tuple_id)
return false;
}
boolean this_present_table_name = true && this.isSetTableName();
boolean that_present_table_name = true && that.isSetTableName();
if (this_present_table_name || that_present_table_name) {
if (!(this_present_table_name && that_present_table_name))
return false;
if (!this.table_name.equals(that.table_name))
return false;
}
boolean this_present_db = true && this.isSetDb();
boolean that_present_db = true && that.isSetDb();
if (this_present_db || that_present_db) {
if (!(this_present_db && that_present_db))
return false;
if (!this.db.equals(that.db))
return false;
}
boolean this_present_table = true && this.isSetTable();
boolean that_present_table = true && that.isSetTable();
if (this_present_table || that_present_table) {
if (!(this_present_table && that_present_table))
return false;
if (!this.table.equals(that.table))
return false;
}
boolean this_present_wild = true && this.isSetWild();
boolean that_present_wild = true && that.isSetWild();
if (this_present_wild || that_present_wild) {
if (!(this_present_wild && that_present_wild))
return false;
if (!this.wild.equals(that.wild))
return false;
}
boolean this_present_user = true && this.isSetUser();
boolean that_present_user = true && that.isSetUser();
if (this_present_user || that_present_user) {
if (!(this_present_user && that_present_user))
return false;
if (!this.user.equals(that.user))
return false;
}
boolean this_present_ip = true && this.isSetIp();
boolean that_present_ip = true && that.isSetIp();
if (this_present_ip || that_present_ip) {
if (!(this_present_ip && that_present_ip))
return false;
if (!this.ip.equals(that.ip))
return false;
}
boolean this_present_port = true && this.isSetPort();
boolean that_present_port = true && that.isSetPort();
if (this_present_port || that_present_port) {
if (!(this_present_port && that_present_port))
return false;
if (this.port != that.port)
return false;
}
boolean this_present_thread_id = true && this.isSetThreadId();
boolean that_present_thread_id = true && that.isSetThreadId();
if (this_present_thread_id || that_present_thread_id) {
if (!(this_present_thread_id && that_present_thread_id))
return false;
if (this.thread_id != that.thread_id)
return false;
}
boolean this_present_user_ip = true && this.isSetUserIp();
boolean that_present_user_ip = true && that.isSetUserIp();
if (this_present_user_ip || that_present_user_ip) {
if (!(this_present_user_ip && that_present_user_ip))
return false;
if (!this.user_ip.equals(that.user_ip))
return false;
}
boolean this_present_current_user_ident = true && this.isSetCurrentUserIdent();
boolean that_present_current_user_ident = true && that.isSetCurrentUserIdent();
if (this_present_current_user_ident || that_present_current_user_ident) {
if (!(this_present_current_user_ident && that_present_current_user_ident))
return false;
if (!this.current_user_ident.equals(that.current_user_ident))
return false;
}
boolean this_present_show_hidden_cloumns = true && this.isSetShowHiddenCloumns();
boolean that_present_show_hidden_cloumns = true && that.isSetShowHiddenCloumns();
if (this_present_show_hidden_cloumns || that_present_show_hidden_cloumns) {
if (!(this_present_show_hidden_cloumns && that_present_show_hidden_cloumns))
return false;
if (this.show_hidden_cloumns != that.show_hidden_cloumns)
return false;
}
boolean this_present_catalog = true && this.isSetCatalog();
boolean that_present_catalog = true && that.isSetCatalog();
if (this_present_catalog || that_present_catalog) {
if (!(this_present_catalog && that_present_catalog))
return false;
if (!this.catalog.equals(that.catalog))
return false;
}
boolean this_present_fe_addr_list = true && this.isSetFeAddrList();
boolean that_present_fe_addr_list = true && that.isSetFeAddrList();
if (this_present_fe_addr_list || that_present_fe_addr_list) {
if (!(this_present_fe_addr_list && that_present_fe_addr_list))
return false;
if (!this.fe_addr_list.equals(that.fe_addr_list))
return false;
}
boolean this_present_frontend_conjuncts = true && this.isSetFrontendConjuncts();
boolean that_present_frontend_conjuncts = true && that.isSetFrontendConjuncts();
if (this_present_frontend_conjuncts || that_present_frontend_conjuncts) {
if (!(this_present_frontend_conjuncts && that_present_frontend_conjuncts))
return false;
if (!this.frontend_conjuncts.equals(that.frontend_conjuncts))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + tuple_id;
hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287);
if (isSetTableName())
hashCode = hashCode * 8191 + table_name.hashCode();
hashCode = hashCode * 8191 + ((isSetDb()) ? 131071 : 524287);
if (isSetDb())
hashCode = hashCode * 8191 + db.hashCode();
hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287);
if (isSetTable())
hashCode = hashCode * 8191 + table.hashCode();
hashCode = hashCode * 8191 + ((isSetWild()) ? 131071 : 524287);
if (isSetWild())
hashCode = hashCode * 8191 + wild.hashCode();
hashCode = hashCode * 8191 + ((isSetUser()) ? 131071 : 524287);
if (isSetUser())
hashCode = hashCode * 8191 + user.hashCode();
hashCode = hashCode * 8191 + ((isSetIp()) ? 131071 : 524287);
if (isSetIp())
hashCode = hashCode * 8191 + ip.hashCode();
hashCode = hashCode * 8191 + ((isSetPort()) ? 131071 : 524287);
if (isSetPort())
hashCode = hashCode * 8191 + port;
hashCode = hashCode * 8191 + ((isSetThreadId()) ? 131071 : 524287);
if (isSetThreadId())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(thread_id);
hashCode = hashCode * 8191 + ((isSetUserIp()) ? 131071 : 524287);
if (isSetUserIp())
hashCode = hashCode * 8191 + user_ip.hashCode();
hashCode = hashCode * 8191 + ((isSetCurrentUserIdent()) ? 131071 : 524287);
if (isSetCurrentUserIdent())
hashCode = hashCode * 8191 + current_user_ident.hashCode();
hashCode = hashCode * 8191 + ((isSetShowHiddenCloumns()) ? 131071 : 524287);
if (isSetShowHiddenCloumns())
hashCode = hashCode * 8191 + ((show_hidden_cloumns) ? 131071 : 524287);
hashCode = hashCode * 8191 + ((isSetCatalog()) ? 131071 : 524287);
if (isSetCatalog())
hashCode = hashCode * 8191 + catalog.hashCode();
hashCode = hashCode * 8191 + ((isSetFeAddrList()) ? 131071 : 524287);
if (isSetFeAddrList())
hashCode = hashCode * 8191 + fe_addr_list.hashCode();
hashCode = hashCode * 8191 + ((isSetFrontendConjuncts()) ? 131071 : 524287);
if (isSetFrontendConjuncts())
hashCode = hashCode * 8191 + frontend_conjuncts.hashCode();
return hashCode;
}
@Override
public int compareTo(TSchemaScanNode other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetTupleId(), other.isSetTupleId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTupleId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tuple_id, other.tuple_id);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetTableName(), other.isSetTableName());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTableName()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, other.table_name);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetDb(), other.isSetDb());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDb()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db, other.db);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetTable(), other.isSetTable());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTable()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table, other.table);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetWild(), other.isSetWild());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetWild()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wild, other.wild);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetUser(), other.isSetUser());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUser()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user, other.user);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetIp(), other.isSetIp());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetIp()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ip, other.ip);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetPort(), other.isSetPort());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPort()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetThreadId(), other.isSetThreadId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetThreadId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.thread_id, other.thread_id);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetUserIp(), other.isSetUserIp());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetUserIp()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_ip, other.user_ip);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetCurrentUserIdent(), other.isSetCurrentUserIdent());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCurrentUserIdent()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.current_user_ident, other.current_user_ident);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetShowHiddenCloumns(), other.isSetShowHiddenCloumns());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetShowHiddenCloumns()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.show_hidden_cloumns, other.show_hidden_cloumns);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetCatalog(), other.isSetCatalog());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCatalog()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalog, other.catalog);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetFeAddrList(), other.isSetFeAddrList());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFeAddrList()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fe_addr_list, other.fe_addr_list);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetFrontendConjuncts(), other.isSetFrontendConjuncts());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetFrontendConjuncts()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.frontend_conjuncts, other.frontend_conjuncts);
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("TSchemaScanNode(");
boolean first = true;
sb.append("tuple_id:");
sb.append(this.tuple_id);
first = false;
if (!first) sb.append(", ");
sb.append("table_name:");
if (this.table_name == null) {
sb.append("null");
} else {
sb.append(this.table_name);
}
first = false;
if (isSetDb()) {
if (!first) sb.append(", ");
sb.append("db:");
if (this.db == null) {
sb.append("null");
} else {
sb.append(this.db);
}
first = false;
}
if (isSetTable()) {
if (!first) sb.append(", ");
sb.append("table:");
if (this.table == null) {
sb.append("null");
} else {
sb.append(this.table);
}
first = false;
}
if (isSetWild()) {
if (!first) sb.append(", ");
sb.append("wild:");
if (this.wild == null) {
sb.append("null");
} else {
sb.append(this.wild);
}
first = false;
}
if (isSetUser()) {
if (!first) sb.append(", ");
sb.append("user:");
if (this.user == null) {
sb.append("null");
} else {
sb.append(this.user);
}
first = false;
}
if (isSetIp()) {
if (!first) sb.append(", ");
sb.append("ip:");
if (this.ip == null) {
sb.append("null");
} else {
sb.append(this.ip);
}
first = false;
}
if (isSetPort()) {
if (!first) sb.append(", ");
sb.append("port:");
sb.append(this.port);
first = false;
}
if (isSetThreadId()) {
if (!first) sb.append(", ");
sb.append("thread_id:");
sb.append(this.thread_id);
first = false;
}
if (isSetUserIp()) {
if (!first) sb.append(", ");
sb.append("user_ip:");
if (this.user_ip == null) {
sb.append("null");
} else {
sb.append(this.user_ip);
}
first = false;
}
if (isSetCurrentUserIdent()) {
if (!first) sb.append(", ");
sb.append("current_user_ident:");
if (this.current_user_ident == null) {
sb.append("null");
} else {
sb.append(this.current_user_ident);
}
first = false;
}
if (isSetShowHiddenCloumns()) {
if (!first) sb.append(", ");
sb.append("show_hidden_cloumns:");
sb.append(this.show_hidden_cloumns);
first = false;
}
if (isSetCatalog()) {
if (!first) sb.append(", ");
sb.append("catalog:");
if (this.catalog == null) {
sb.append("null");
} else {
sb.append(this.catalog);
}
first = false;
}
if (isSetFeAddrList()) {
if (!first) sb.append(", ");
sb.append("fe_addr_list:");
if (this.fe_addr_list == null) {
sb.append("null");
} else {
sb.append(this.fe_addr_list);
}
first = false;
}
if (isSetFrontendConjuncts()) {
if (!first) sb.append(", ");
sb.append("frontend_conjuncts:");
if (this.frontend_conjuncts == null) {
sb.append("null");
} else {
sb.append(this.frontend_conjuncts);
}
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// alas, we cannot check 'tuple_id' because it's a primitive and you chose the non-beans generator.
if (table_name == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'table_name' was not present! Struct: " + toString());
}
// check for sub-struct validity
if (current_user_ident != null) {
current_user_ident.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException {
try {
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
__isset_bitfield = 0;
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class TSchemaScanNodeStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TSchemaScanNodeStandardScheme getScheme() {
return new TSchemaScanNodeStandardScheme();
}
}
private static class TSchemaScanNodeStandardScheme extends org.apache.thrift.scheme.StandardScheme<TSchemaScanNode> {
public void read(org.apache.thrift.protocol.TProtocol iprot, TSchemaScanNode 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: // TUPLE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.tuple_id = iprot.readI32();
struct.setTupleIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // TABLE_NAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.table_name = iprot.readString();
struct.setTableNameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // DB
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.db = iprot.readString();
struct.setDbIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // TABLE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.table = iprot.readString();
struct.setTableIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 5: // WILD
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.wild = iprot.readString();
struct.setWildIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // USER
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.user = iprot.readString();
struct.setUserIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // IP
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.ip = iprot.readString();
struct.setIpIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // PORT
if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
struct.port = iprot.readI32();
struct.setPortIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // THREAD_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.thread_id = iprot.readI64();
struct.setThreadIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 10: // USER_IP
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.user_ip = iprot.readString();
struct.setUserIpIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 11: // CURRENT_USER_IDENT
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.current_user_ident = new org.apache.doris.thrift.TUserIdentity();
struct.current_user_ident.read(iprot);
struct.setCurrentUserIdentIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 12: // SHOW_HIDDEN_CLOUMNS
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.show_hidden_cloumns = iprot.readBool();
struct.setShowHiddenCloumnsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 14: // CATALOG
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.catalog = iprot.readString();
struct.setCatalogIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 15: // FE_ADDR_LIST
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list586 = iprot.readListBegin();
struct.fe_addr_list = new java.util.ArrayList<org.apache.doris.thrift.TNetworkAddress>(_list586.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TNetworkAddress _elem587;
for (int _i588 = 0; _i588 < _list586.size; ++_i588)
{
_elem587 = new org.apache.doris.thrift.TNetworkAddress();
_elem587.read(iprot);
struct.fe_addr_list.add(_elem587);
}
iprot.readListEnd();
}
struct.setFeAddrListIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 16: // FRONTEND_CONJUNCTS
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.frontend_conjuncts = iprot.readString();
struct.setFrontendConjunctsIsSet(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.isSetTupleId()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'tuple_id' was not found in serialized data! Struct: " + toString());
}
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, TSchemaScanNode struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
oprot.writeFieldBegin(TUPLE_ID_FIELD_DESC);
oprot.writeI32(struct.tuple_id);
oprot.writeFieldEnd();
if (struct.table_name != null) {
oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC);
oprot.writeString(struct.table_name);
oprot.writeFieldEnd();
}
if (struct.db != null) {
if (struct.isSetDb()) {
oprot.writeFieldBegin(DB_FIELD_DESC);
oprot.writeString(struct.db);
oprot.writeFieldEnd();
}
}
if (struct.table != null) {
if (struct.isSetTable()) {
oprot.writeFieldBegin(TABLE_FIELD_DESC);
oprot.writeString(struct.table);
oprot.writeFieldEnd();
}
}
if (struct.wild != null) {
if (struct.isSetWild()) {
oprot.writeFieldBegin(WILD_FIELD_DESC);
oprot.writeString(struct.wild);
oprot.writeFieldEnd();
}
}
if (struct.user != null) {
if (struct.isSetUser()) {
oprot.writeFieldBegin(USER_FIELD_DESC);
oprot.writeString(struct.user);
oprot.writeFieldEnd();
}
}
if (struct.ip != null) {
if (struct.isSetIp()) {
oprot.writeFieldBegin(IP_FIELD_DESC);
oprot.writeString(struct.ip);
oprot.writeFieldEnd();
}
}
if (struct.isSetPort()) {
oprot.writeFieldBegin(PORT_FIELD_DESC);
oprot.writeI32(struct.port);
oprot.writeFieldEnd();
}
if (struct.isSetThreadId()) {
oprot.writeFieldBegin(THREAD_ID_FIELD_DESC);
oprot.writeI64(struct.thread_id);
oprot.writeFieldEnd();
}
if (struct.user_ip != null) {
if (struct.isSetUserIp()) {
oprot.writeFieldBegin(USER_IP_FIELD_DESC);
oprot.writeString(struct.user_ip);
oprot.writeFieldEnd();
}
}
if (struct.current_user_ident != null) {
if (struct.isSetCurrentUserIdent()) {
oprot.writeFieldBegin(CURRENT_USER_IDENT_FIELD_DESC);
struct.current_user_ident.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.isSetShowHiddenCloumns()) {
oprot.writeFieldBegin(SHOW_HIDDEN_CLOUMNS_FIELD_DESC);
oprot.writeBool(struct.show_hidden_cloumns);
oprot.writeFieldEnd();
}
if (struct.catalog != null) {
if (struct.isSetCatalog()) {
oprot.writeFieldBegin(CATALOG_FIELD_DESC);
oprot.writeString(struct.catalog);
oprot.writeFieldEnd();
}
}
if (struct.fe_addr_list != null) {
if (struct.isSetFeAddrList()) {
oprot.writeFieldBegin(FE_ADDR_LIST_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.fe_addr_list.size()));
for (org.apache.doris.thrift.TNetworkAddress _iter589 : struct.fe_addr_list)
{
_iter589.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.frontend_conjuncts != null) {
if (struct.isSetFrontendConjuncts()) {
oprot.writeFieldBegin(FRONTEND_CONJUNCTS_FIELD_DESC);
oprot.writeString(struct.frontend_conjuncts);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TSchemaScanNodeTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TSchemaScanNodeTupleScheme getScheme() {
return new TSchemaScanNodeTupleScheme();
}
}
private static class TSchemaScanNodeTupleScheme extends org.apache.thrift.scheme.TupleScheme<TSchemaScanNode> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TSchemaScanNode struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
oprot.writeI32(struct.tuple_id);
oprot.writeString(struct.table_name);
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetDb()) {
optionals.set(0);
}
if (struct.isSetTable()) {
optionals.set(1);
}
if (struct.isSetWild()) {
optionals.set(2);
}
if (struct.isSetUser()) {
optionals.set(3);
}
if (struct.isSetIp()) {
optionals.set(4);
}
if (struct.isSetPort()) {
optionals.set(5);
}
if (struct.isSetThreadId()) {
optionals.set(6);
}
if (struct.isSetUserIp()) {
optionals.set(7);
}
if (struct.isSetCurrentUserIdent()) {
optionals.set(8);
}
if (struct.isSetShowHiddenCloumns()) {
optionals.set(9);
}
if (struct.isSetCatalog()) {
optionals.set(10);
}
if (struct.isSetFeAddrList()) {
optionals.set(11);
}
if (struct.isSetFrontendConjuncts()) {
optionals.set(12);
}
oprot.writeBitSet(optionals, 13);
if (struct.isSetDb()) {
oprot.writeString(struct.db);
}
if (struct.isSetTable()) {
oprot.writeString(struct.table);
}
if (struct.isSetWild()) {
oprot.writeString(struct.wild);
}
if (struct.isSetUser()) {
oprot.writeString(struct.user);
}
if (struct.isSetIp()) {
oprot.writeString(struct.ip);
}
if (struct.isSetPort()) {
oprot.writeI32(struct.port);
}
if (struct.isSetThreadId()) {
oprot.writeI64(struct.thread_id);
}
if (struct.isSetUserIp()) {
oprot.writeString(struct.user_ip);
}
if (struct.isSetCurrentUserIdent()) {
struct.current_user_ident.write(oprot);
}
if (struct.isSetShowHiddenCloumns()) {
oprot.writeBool(struct.show_hidden_cloumns);
}
if (struct.isSetCatalog()) {
oprot.writeString(struct.catalog);
}
if (struct.isSetFeAddrList()) {
{
oprot.writeI32(struct.fe_addr_list.size());
for (org.apache.doris.thrift.TNetworkAddress _iter590 : struct.fe_addr_list)
{
_iter590.write(oprot);
}
}
}
if (struct.isSetFrontendConjuncts()) {
oprot.writeString(struct.frontend_conjuncts);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TSchemaScanNode struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
struct.tuple_id = iprot.readI32();
struct.setTupleIdIsSet(true);
struct.table_name = iprot.readString();
struct.setTableNameIsSet(true);
java.util.BitSet incoming = iprot.readBitSet(13);
if (incoming.get(0)) {
struct.db = iprot.readString();
struct.setDbIsSet(true);
}
if (incoming.get(1)) {
struct.table = iprot.readString();
struct.setTableIsSet(true);
}
if (incoming.get(2)) {
struct.wild = iprot.readString();
struct.setWildIsSet(true);
}
if (incoming.get(3)) {
struct.user = iprot.readString();
struct.setUserIsSet(true);
}
if (incoming.get(4)) {
struct.ip = iprot.readString();
struct.setIpIsSet(true);
}
if (incoming.get(5)) {
struct.port = iprot.readI32();
struct.setPortIsSet(true);
}
if (incoming.get(6)) {
struct.thread_id = iprot.readI64();
struct.setThreadIdIsSet(true);
}
if (incoming.get(7)) {
struct.user_ip = iprot.readString();
struct.setUserIpIsSet(true);
}
if (incoming.get(8)) {
struct.current_user_ident = new org.apache.doris.thrift.TUserIdentity();
struct.current_user_ident.read(iprot);
struct.setCurrentUserIdentIsSet(true);
}
if (incoming.get(9)) {
struct.show_hidden_cloumns = iprot.readBool();
struct.setShowHiddenCloumnsIsSet(true);
}
if (incoming.get(10)) {
struct.catalog = iprot.readString();
struct.setCatalogIsSet(true);
}
if (incoming.get(11)) {
{
org.apache.thrift.protocol.TList _list591 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.fe_addr_list = new java.util.ArrayList<org.apache.doris.thrift.TNetworkAddress>(_list591.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TNetworkAddress _elem592;
for (int _i593 = 0; _i593 < _list591.size; ++_i593)
{
_elem592 = new org.apache.doris.thrift.TNetworkAddress();
_elem592.read(iprot);
struct.fe_addr_list.add(_elem592);
}
}
struct.setFeAddrListIsSet(true);
}
if (incoming.get(12)) {
struct.frontend_conjuncts = iprot.readString();
struct.setFrontendConjunctsIsSet(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();
}
}