TGetTablesParams.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 TGetTablesParams implements org.apache.thrift.TBase<TGetTablesParams, TGetTablesParams._Fields>, java.io.Serializable, Cloneable, Comparable<TGetTablesParams> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TGetTablesParams");
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)1);
private static final org.apache.thrift.protocol.TField PATTERN_FIELD_DESC = new org.apache.thrift.protocol.TField("pattern", org.apache.thrift.protocol.TType.STRING, (short)2);
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)3);
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)4);
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)5);
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)6);
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)7);
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)8);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TGetTablesParamsStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TGetTablesParamsTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.lang.String db; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String pattern; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String user; // 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 @org.apache.thrift.annotation.Nullable java.lang.String type; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String catalog; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String table; // 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 {
DB((short)1, "db"),
PATTERN((short)2, "pattern"),
USER((short)3, "user"),
USER_IP((short)4, "user_ip"),
CURRENT_USER_IDENT((short)5, "current_user_ident"),
TYPE((short)6, "type"),
CATALOG((short)7, "catalog"),
TABLE((short)8, "table");
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: // DB
return DB;
case 2: // PATTERN
return PATTERN;
case 3: // USER
return USER;
case 4: // USER_IP
return USER_IP;
case 5: // CURRENT_USER_IDENT
return CURRENT_USER_IDENT;
case 6: // TYPE
return TYPE;
case 7: // CATALOG
return CATALOG;
case 8: // TABLE
return TABLE;
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.DB,_Fields.PATTERN,_Fields.USER,_Fields.USER_IP,_Fields.CURRENT_USER_IDENT,_Fields.TYPE,_Fields.CATALOG,_Fields.TABLE};
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.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.PATTERN, new org.apache.thrift.meta_data.FieldMetaData("pattern", 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.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.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
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.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)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TGetTablesParams.class, metaDataMap);
}
public TGetTablesParams() {
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TGetTablesParams(TGetTablesParams other) {
if (other.isSetDb()) {
this.db = other.db;
}
if (other.isSetPattern()) {
this.pattern = other.pattern;
}
if (other.isSetUser()) {
this.user = other.user;
}
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);
}
if (other.isSetType()) {
this.type = other.type;
}
if (other.isSetCatalog()) {
this.catalog = other.catalog;
}
if (other.isSetTable()) {
this.table = other.table;
}
}
public TGetTablesParams deepCopy() {
return new TGetTablesParams(this);
}
@Override
public void clear() {
this.db = null;
this.pattern = null;
this.user = null;
this.user_ip = null;
this.current_user_ident = null;
this.type = null;
this.catalog = null;
this.table = null;
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getDb() {
return this.db;
}
public TGetTablesParams 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 getPattern() {
return this.pattern;
}
public TGetTablesParams setPattern(@org.apache.thrift.annotation.Nullable java.lang.String pattern) {
this.pattern = pattern;
return this;
}
public void unsetPattern() {
this.pattern = null;
}
/** Returns true if field pattern is set (has been assigned a value) and false otherwise */
public boolean isSetPattern() {
return this.pattern != null;
}
public void setPatternIsSet(boolean value) {
if (!value) {
this.pattern = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getUser() {
return this.user;
}
public TGetTablesParams 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 getUserIp() {
return this.user_ip;
}
public TGetTablesParams 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 TGetTablesParams 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;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getType() {
return this.type;
}
public TGetTablesParams setType(@org.apache.thrift.annotation.Nullable java.lang.String type) {
this.type = type;
return this;
}
public void unsetType() {
this.type = null;
}
/** Returns true if field type is set (has been assigned a value) and false otherwise */
public boolean isSetType() {
return this.type != null;
}
public void setTypeIsSet(boolean value) {
if (!value) {
this.type = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getCatalog() {
return this.catalog;
}
public TGetTablesParams 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;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getTable() {
return this.table;
}
public TGetTablesParams 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;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case DB:
if (value == null) {
unsetDb();
} else {
setDb((java.lang.String)value);
}
break;
case PATTERN:
if (value == null) {
unsetPattern();
} else {
setPattern((java.lang.String)value);
}
break;
case USER:
if (value == null) {
unsetUser();
} else {
setUser((java.lang.String)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 TYPE:
if (value == null) {
unsetType();
} else {
setType((java.lang.String)value);
}
break;
case CATALOG:
if (value == null) {
unsetCatalog();
} else {
setCatalog((java.lang.String)value);
}
break;
case TABLE:
if (value == null) {
unsetTable();
} else {
setTable((java.lang.String)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case DB:
return getDb();
case PATTERN:
return getPattern();
case USER:
return getUser();
case USER_IP:
return getUserIp();
case CURRENT_USER_IDENT:
return getCurrentUserIdent();
case TYPE:
return getType();
case CATALOG:
return getCatalog();
case TABLE:
return getTable();
}
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 DB:
return isSetDb();
case PATTERN:
return isSetPattern();
case USER:
return isSetUser();
case USER_IP:
return isSetUserIp();
case CURRENT_USER_IDENT:
return isSetCurrentUserIdent();
case TYPE:
return isSetType();
case CATALOG:
return isSetCatalog();
case TABLE:
return isSetTable();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TGetTablesParams)
return this.equals((TGetTablesParams)that);
return false;
}
public boolean equals(TGetTablesParams that) {
if (that == null)
return false;
if (this == that)
return true;
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_pattern = true && this.isSetPattern();
boolean that_present_pattern = true && that.isSetPattern();
if (this_present_pattern || that_present_pattern) {
if (!(this_present_pattern && that_present_pattern))
return false;
if (!this.pattern.equals(that.pattern))
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_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_type = true && this.isSetType();
boolean that_present_type = true && that.isSetType();
if (this_present_type || that_present_type) {
if (!(this_present_type && that_present_type))
return false;
if (!this.type.equals(that.type))
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_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;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetDb()) ? 131071 : 524287);
if (isSetDb())
hashCode = hashCode * 8191 + db.hashCode();
hashCode = hashCode * 8191 + ((isSetPattern()) ? 131071 : 524287);
if (isSetPattern())
hashCode = hashCode * 8191 + pattern.hashCode();
hashCode = hashCode * 8191 + ((isSetUser()) ? 131071 : 524287);
if (isSetUser())
hashCode = hashCode * 8191 + user.hashCode();
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 + ((isSetType()) ? 131071 : 524287);
if (isSetType())
hashCode = hashCode * 8191 + type.hashCode();
hashCode = hashCode * 8191 + ((isSetCatalog()) ? 131071 : 524287);
if (isSetCatalog())
hashCode = hashCode * 8191 + catalog.hashCode();
hashCode = hashCode * 8191 + ((isSetTable()) ? 131071 : 524287);
if (isSetTable())
hashCode = hashCode * 8191 + table.hashCode();
return hashCode;
}
@Override
public int compareTo(TGetTablesParams other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
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(isSetPattern(), other.isSetPattern());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPattern()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pattern, other.pattern);
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(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(isSetType(), other.isSetType());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetType()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
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(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;
}
}
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("TGetTablesParams(");
boolean first = true;
if (isSetDb()) {
sb.append("db:");
if (this.db == null) {
sb.append("null");
} else {
sb.append(this.db);
}
first = false;
}
if (isSetPattern()) {
if (!first) sb.append(", ");
sb.append("pattern:");
if (this.pattern == null) {
sb.append("null");
} else {
sb.append(this.pattern);
}
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 (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 (isSetType()) {
if (!first) sb.append(", ");
sb.append("type:");
if (this.type == null) {
sb.append("null");
} else {
sb.append(this.type);
}
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 (isSetTable()) {
if (!first) sb.append(", ");
sb.append("table:");
if (this.table == null) {
sb.append("null");
} else {
sb.append(this.table);
}
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// 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 {
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 TGetTablesParamsStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TGetTablesParamsStandardScheme getScheme() {
return new TGetTablesParamsStandardScheme();
}
}
private static class TGetTablesParamsStandardScheme extends org.apache.thrift.scheme.StandardScheme<TGetTablesParams> {
public void read(org.apache.thrift.protocol.TProtocol iprot, TGetTablesParams 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: // 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 2: // PATTERN
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.pattern = iprot.readString();
struct.setPatternIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 3: // 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 4: // 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 5: // 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 6: // TYPE
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.type = iprot.readString();
struct.setTypeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 7: // 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 8: // 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;
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, TGetTablesParams struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.db != null) {
if (struct.isSetDb()) {
oprot.writeFieldBegin(DB_FIELD_DESC);
oprot.writeString(struct.db);
oprot.writeFieldEnd();
}
}
if (struct.pattern != null) {
if (struct.isSetPattern()) {
oprot.writeFieldBegin(PATTERN_FIELD_DESC);
oprot.writeString(struct.pattern);
oprot.writeFieldEnd();
}
}
if (struct.user != null) {
if (struct.isSetUser()) {
oprot.writeFieldBegin(USER_FIELD_DESC);
oprot.writeString(struct.user);
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.type != null) {
if (struct.isSetType()) {
oprot.writeFieldBegin(TYPE_FIELD_DESC);
oprot.writeString(struct.type);
oprot.writeFieldEnd();
}
}
if (struct.catalog != null) {
if (struct.isSetCatalog()) {
oprot.writeFieldBegin(CATALOG_FIELD_DESC);
oprot.writeString(struct.catalog);
oprot.writeFieldEnd();
}
}
if (struct.table != null) {
if (struct.isSetTable()) {
oprot.writeFieldBegin(TABLE_FIELD_DESC);
oprot.writeString(struct.table);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TGetTablesParamsTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TGetTablesParamsTupleScheme getScheme() {
return new TGetTablesParamsTupleScheme();
}
}
private static class TGetTablesParamsTupleScheme extends org.apache.thrift.scheme.TupleScheme<TGetTablesParams> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TGetTablesParams 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.isSetDb()) {
optionals.set(0);
}
if (struct.isSetPattern()) {
optionals.set(1);
}
if (struct.isSetUser()) {
optionals.set(2);
}
if (struct.isSetUserIp()) {
optionals.set(3);
}
if (struct.isSetCurrentUserIdent()) {
optionals.set(4);
}
if (struct.isSetType()) {
optionals.set(5);
}
if (struct.isSetCatalog()) {
optionals.set(6);
}
if (struct.isSetTable()) {
optionals.set(7);
}
oprot.writeBitSet(optionals, 8);
if (struct.isSetDb()) {
oprot.writeString(struct.db);
}
if (struct.isSetPattern()) {
oprot.writeString(struct.pattern);
}
if (struct.isSetUser()) {
oprot.writeString(struct.user);
}
if (struct.isSetUserIp()) {
oprot.writeString(struct.user_ip);
}
if (struct.isSetCurrentUserIdent()) {
struct.current_user_ident.write(oprot);
}
if (struct.isSetType()) {
oprot.writeString(struct.type);
}
if (struct.isSetCatalog()) {
oprot.writeString(struct.catalog);
}
if (struct.isSetTable()) {
oprot.writeString(struct.table);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TGetTablesParams struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
java.util.BitSet incoming = iprot.readBitSet(8);
if (incoming.get(0)) {
struct.db = iprot.readString();
struct.setDbIsSet(true);
}
if (incoming.get(1)) {
struct.pattern = iprot.readString();
struct.setPatternIsSet(true);
}
if (incoming.get(2)) {
struct.user = iprot.readString();
struct.setUserIsSet(true);
}
if (incoming.get(3)) {
struct.user_ip = iprot.readString();
struct.setUserIpIsSet(true);
}
if (incoming.get(4)) {
struct.current_user_ident = new org.apache.doris.thrift.TUserIdentity();
struct.current_user_ident.read(iprot);
struct.setCurrentUserIdentIsSet(true);
}
if (incoming.get(5)) {
struct.type = iprot.readString();
struct.setTypeIsSet(true);
}
if (incoming.get(6)) {
struct.catalog = iprot.readString();
struct.setCatalogIsSet(true);
}
if (incoming.get(7)) {
struct.table = iprot.readString();
struct.setTableIsSet(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();
}
}