TLoadTxnCommitRequest.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 TLoadTxnCommitRequest implements org.apache.thrift.TBase<TLoadTxnCommitRequest, TLoadTxnCommitRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TLoadTxnCommitRequest> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TLoadTxnCommitRequest");
private static final org.apache.thrift.protocol.TField CLUSTER_FIELD_DESC = new org.apache.thrift.protocol.TField("cluster", org.apache.thrift.protocol.TType.STRING, (short)1);
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)2);
private static final org.apache.thrift.protocol.TField PASSWD_FIELD_DESC = new org.apache.thrift.protocol.TField("passwd", org.apache.thrift.protocol.TType.STRING, (short)3);
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)4);
private static final org.apache.thrift.protocol.TField TBL_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl", org.apache.thrift.protocol.TType.STRING, (short)5);
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)6);
private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)7);
private static final org.apache.thrift.protocol.TField SYNC_FIELD_DESC = new org.apache.thrift.protocol.TField("sync", org.apache.thrift.protocol.TType.BOOL, (short)8);
private static final org.apache.thrift.protocol.TField COMMIT_INFOS_FIELD_DESC = new org.apache.thrift.protocol.TField("commitInfos", org.apache.thrift.protocol.TType.LIST, (short)9);
private static final org.apache.thrift.protocol.TField AUTH_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("auth_code", org.apache.thrift.protocol.TType.I64, (short)10);
private static final org.apache.thrift.protocol.TField TXN_COMMIT_ATTACHMENT_FIELD_DESC = new org.apache.thrift.protocol.TField("txnCommitAttachment", org.apache.thrift.protocol.TType.STRUCT, (short)11);
private static final org.apache.thrift.protocol.TField THRIFT_RPC_TIMEOUT_MS_FIELD_DESC = new org.apache.thrift.protocol.TField("thrift_rpc_timeout_ms", org.apache.thrift.protocol.TType.I64, (short)12);
private static final org.apache.thrift.protocol.TField TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("token", org.apache.thrift.protocol.TType.STRING, (short)13);
private static final org.apache.thrift.protocol.TField DB_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("db_id", org.apache.thrift.protocol.TType.I64, (short)14);
private static final org.apache.thrift.protocol.TField TBLS_FIELD_DESC = new org.apache.thrift.protocol.TField("tbls", org.apache.thrift.protocol.TType.LIST, (short)15);
private static final org.apache.thrift.protocol.TField TABLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("table_id", org.apache.thrift.protocol.TType.I64, (short)16);
private static final org.apache.thrift.protocol.TField AUTH_CODE_UUID_FIELD_DESC = new org.apache.thrift.protocol.TField("auth_code_uuid", org.apache.thrift.protocol.TType.STRING, (short)17);
private static final org.apache.thrift.protocol.TField GROUP_COMMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("groupCommit", org.apache.thrift.protocol.TType.BOOL, (short)18);
private static final org.apache.thrift.protocol.TField RECEIVE_BYTES_FIELD_DESC = new org.apache.thrift.protocol.TField("receiveBytes", org.apache.thrift.protocol.TType.I64, (short)19);
private static final org.apache.thrift.protocol.TField BACKEND_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("backendId", org.apache.thrift.protocol.TType.I64, (short)20);
private static final org.apache.thrift.protocol.TField CERT_BASED_AUTH_FIELD_DESC = new org.apache.thrift.protocol.TField("cert_based_auth", org.apache.thrift.protocol.TType.STRUCT, (short)21);
private static final org.apache.thrift.scheme.SchemeFactory STANDARD_SCHEME_FACTORY = new TLoadTxnCommitRequestStandardSchemeFactory();
private static final org.apache.thrift.scheme.SchemeFactory TUPLE_SCHEME_FACTORY = new TLoadTxnCommitRequestTupleSchemeFactory();
public @org.apache.thrift.annotation.Nullable java.lang.String cluster; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String user; // required
public @org.apache.thrift.annotation.Nullable java.lang.String passwd; // required
public @org.apache.thrift.annotation.Nullable java.lang.String db; // required
public @org.apache.thrift.annotation.Nullable java.lang.String tbl; // required
public @org.apache.thrift.annotation.Nullable java.lang.String user_ip; // optional
public long txnId; // required
public boolean sync; // required
public @org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TTabletCommitInfo> commitInfos; // optional
public long auth_code; // optional
public @org.apache.thrift.annotation.Nullable TTxnCommitAttachment txnCommitAttachment; // optional
public long thrift_rpc_timeout_ms; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String token; // optional
public long db_id; // optional
public @org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> tbls; // optional
public long table_id; // optional
public @org.apache.thrift.annotation.Nullable java.lang.String auth_code_uuid; // optional
public boolean groupCommit; // optional
public long receiveBytes; // optional
public long backendId; // optional
public @org.apache.thrift.annotation.Nullable TCertBasedAuth cert_based_auth; // 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 {
CLUSTER((short)1, "cluster"),
USER((short)2, "user"),
PASSWD((short)3, "passwd"),
DB((short)4, "db"),
TBL((short)5, "tbl"),
USER_IP((short)6, "user_ip"),
TXN_ID((short)7, "txnId"),
SYNC((short)8, "sync"),
COMMIT_INFOS((short)9, "commitInfos"),
AUTH_CODE((short)10, "auth_code"),
TXN_COMMIT_ATTACHMENT((short)11, "txnCommitAttachment"),
THRIFT_RPC_TIMEOUT_MS((short)12, "thrift_rpc_timeout_ms"),
TOKEN((short)13, "token"),
DB_ID((short)14, "db_id"),
TBLS((short)15, "tbls"),
TABLE_ID((short)16, "table_id"),
AUTH_CODE_UUID((short)17, "auth_code_uuid"),
GROUP_COMMIT((short)18, "groupCommit"),
RECEIVE_BYTES((short)19, "receiveBytes"),
BACKEND_ID((short)20, "backendId"),
CERT_BASED_AUTH((short)21, "cert_based_auth");
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: // CLUSTER
return CLUSTER;
case 2: // USER
return USER;
case 3: // PASSWD
return PASSWD;
case 4: // DB
return DB;
case 5: // TBL
return TBL;
case 6: // USER_IP
return USER_IP;
case 7: // TXN_ID
return TXN_ID;
case 8: // SYNC
return SYNC;
case 9: // COMMIT_INFOS
return COMMIT_INFOS;
case 10: // AUTH_CODE
return AUTH_CODE;
case 11: // TXN_COMMIT_ATTACHMENT
return TXN_COMMIT_ATTACHMENT;
case 12: // THRIFT_RPC_TIMEOUT_MS
return THRIFT_RPC_TIMEOUT_MS;
case 13: // TOKEN
return TOKEN;
case 14: // DB_ID
return DB_ID;
case 15: // TBLS
return TBLS;
case 16: // TABLE_ID
return TABLE_ID;
case 17: // AUTH_CODE_UUID
return AUTH_CODE_UUID;
case 18: // GROUP_COMMIT
return GROUP_COMMIT;
case 19: // RECEIVE_BYTES
return RECEIVE_BYTES;
case 20: // BACKEND_ID
return BACKEND_ID;
case 21: // CERT_BASED_AUTH
return CERT_BASED_AUTH;
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 __TXNID_ISSET_ID = 0;
private static final int __SYNC_ISSET_ID = 1;
private static final int __AUTH_CODE_ISSET_ID = 2;
private static final int __THRIFT_RPC_TIMEOUT_MS_ISSET_ID = 3;
private static final int __DB_ID_ISSET_ID = 4;
private static final int __TABLE_ID_ISSET_ID = 5;
private static final int __GROUPCOMMIT_ISSET_ID = 6;
private static final int __RECEIVEBYTES_ISSET_ID = 7;
private static final int __BACKENDID_ISSET_ID = 8;
private short __isset_bitfield = 0;
private static final _Fields optionals[] = {_Fields.CLUSTER,_Fields.USER_IP,_Fields.COMMIT_INFOS,_Fields.AUTH_CODE,_Fields.TXN_COMMIT_ATTACHMENT,_Fields.THRIFT_RPC_TIMEOUT_MS,_Fields.TOKEN,_Fields.DB_ID,_Fields.TBLS,_Fields.TABLE_ID,_Fields.AUTH_CODE_UUID,_Fields.GROUP_COMMIT,_Fields.RECEIVE_BYTES,_Fields.BACKEND_ID,_Fields.CERT_BASED_AUTH};
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.CLUSTER, new org.apache.thrift.meta_data.FieldMetaData("cluster", 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.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.PASSWD, new org.apache.thrift.meta_data.FieldMetaData("passwd", 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.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.TBL, new org.apache.thrift.meta_data.FieldMetaData("tbl", org.apache.thrift.TFieldRequirementType.REQUIRED,
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.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.SYNC, new org.apache.thrift.meta_data.FieldMetaData("sync", org.apache.thrift.TFieldRequirementType.REQUIRED,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.COMMIT_INFOS, new org.apache.thrift.meta_data.FieldMetaData("commitInfos", 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.TTabletCommitInfo.class))));
tmpMap.put(_Fields.AUTH_CODE, new org.apache.thrift.meta_data.FieldMetaData("auth_code", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.TXN_COMMIT_ATTACHMENT, new org.apache.thrift.meta_data.FieldMetaData("txnCommitAttachment", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TTxnCommitAttachment.class)));
tmpMap.put(_Fields.THRIFT_RPC_TIMEOUT_MS, new org.apache.thrift.meta_data.FieldMetaData("thrift_rpc_timeout_ms", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.TOKEN, new org.apache.thrift.meta_data.FieldMetaData("token", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.DB_ID, new org.apache.thrift.meta_data.FieldMetaData("db_id", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.TBLS, new org.apache.thrift.meta_data.FieldMetaData("tbls", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
tmpMap.put(_Fields.TABLE_ID, new org.apache.thrift.meta_data.FieldMetaData("table_id", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.AUTH_CODE_UUID, new org.apache.thrift.meta_data.FieldMetaData("auth_code_uuid", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
tmpMap.put(_Fields.GROUP_COMMIT, new org.apache.thrift.meta_data.FieldMetaData("groupCommit", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
tmpMap.put(_Fields.RECEIVE_BYTES, new org.apache.thrift.meta_data.FieldMetaData("receiveBytes", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.BACKEND_ID, new org.apache.thrift.meta_data.FieldMetaData("backendId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
tmpMap.put(_Fields.CERT_BASED_AUTH, new org.apache.thrift.meta_data.FieldMetaData("cert_based_auth", org.apache.thrift.TFieldRequirementType.OPTIONAL,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TCertBasedAuth.class)));
metaDataMap = java.util.Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TLoadTxnCommitRequest.class, metaDataMap);
}
public TLoadTxnCommitRequest() {
}
public TLoadTxnCommitRequest(
java.lang.String user,
java.lang.String passwd,
java.lang.String db,
java.lang.String tbl,
long txnId,
boolean sync)
{
this();
this.user = user;
this.passwd = passwd;
this.db = db;
this.tbl = tbl;
this.txnId = txnId;
setTxnIdIsSet(true);
this.sync = sync;
setSyncIsSet(true);
}
/**
* Performs a deep copy on <i>other</i>.
*/
public TLoadTxnCommitRequest(TLoadTxnCommitRequest other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetCluster()) {
this.cluster = other.cluster;
}
if (other.isSetUser()) {
this.user = other.user;
}
if (other.isSetPasswd()) {
this.passwd = other.passwd;
}
if (other.isSetDb()) {
this.db = other.db;
}
if (other.isSetTbl()) {
this.tbl = other.tbl;
}
if (other.isSetUserIp()) {
this.user_ip = other.user_ip;
}
this.txnId = other.txnId;
this.sync = other.sync;
if (other.isSetCommitInfos()) {
java.util.List<org.apache.doris.thrift.TTabletCommitInfo> __this__commitInfos = new java.util.ArrayList<org.apache.doris.thrift.TTabletCommitInfo>(other.commitInfos.size());
for (org.apache.doris.thrift.TTabletCommitInfo other_element : other.commitInfos) {
__this__commitInfos.add(new org.apache.doris.thrift.TTabletCommitInfo(other_element));
}
this.commitInfos = __this__commitInfos;
}
this.auth_code = other.auth_code;
if (other.isSetTxnCommitAttachment()) {
this.txnCommitAttachment = new TTxnCommitAttachment(other.txnCommitAttachment);
}
this.thrift_rpc_timeout_ms = other.thrift_rpc_timeout_ms;
if (other.isSetToken()) {
this.token = other.token;
}
this.db_id = other.db_id;
if (other.isSetTbls()) {
java.util.List<java.lang.String> __this__tbls = new java.util.ArrayList<java.lang.String>(other.tbls);
this.tbls = __this__tbls;
}
this.table_id = other.table_id;
if (other.isSetAuthCodeUuid()) {
this.auth_code_uuid = other.auth_code_uuid;
}
this.groupCommit = other.groupCommit;
this.receiveBytes = other.receiveBytes;
this.backendId = other.backendId;
if (other.isSetCertBasedAuth()) {
this.cert_based_auth = new TCertBasedAuth(other.cert_based_auth);
}
}
public TLoadTxnCommitRequest deepCopy() {
return new TLoadTxnCommitRequest(this);
}
@Override
public void clear() {
this.cluster = null;
this.user = null;
this.passwd = null;
this.db = null;
this.tbl = null;
this.user_ip = null;
setTxnIdIsSet(false);
this.txnId = 0;
setSyncIsSet(false);
this.sync = false;
this.commitInfos = null;
setAuthCodeIsSet(false);
this.auth_code = 0;
this.txnCommitAttachment = null;
setThriftRpcTimeoutMsIsSet(false);
this.thrift_rpc_timeout_ms = 0;
this.token = null;
setDbIdIsSet(false);
this.db_id = 0;
this.tbls = null;
setTableIdIsSet(false);
this.table_id = 0;
this.auth_code_uuid = null;
setGroupCommitIsSet(false);
this.groupCommit = false;
setReceiveBytesIsSet(false);
this.receiveBytes = 0;
setBackendIdIsSet(false);
this.backendId = 0;
this.cert_based_auth = null;
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getCluster() {
return this.cluster;
}
public TLoadTxnCommitRequest setCluster(@org.apache.thrift.annotation.Nullable java.lang.String cluster) {
this.cluster = cluster;
return this;
}
public void unsetCluster() {
this.cluster = null;
}
/** Returns true if field cluster is set (has been assigned a value) and false otherwise */
public boolean isSetCluster() {
return this.cluster != null;
}
public void setClusterIsSet(boolean value) {
if (!value) {
this.cluster = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getUser() {
return this.user;
}
public TLoadTxnCommitRequest 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 getPasswd() {
return this.passwd;
}
public TLoadTxnCommitRequest setPasswd(@org.apache.thrift.annotation.Nullable java.lang.String passwd) {
this.passwd = passwd;
return this;
}
public void unsetPasswd() {
this.passwd = null;
}
/** Returns true if field passwd is set (has been assigned a value) and false otherwise */
public boolean isSetPasswd() {
return this.passwd != null;
}
public void setPasswdIsSet(boolean value) {
if (!value) {
this.passwd = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getDb() {
return this.db;
}
public TLoadTxnCommitRequest 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 getTbl() {
return this.tbl;
}
public TLoadTxnCommitRequest setTbl(@org.apache.thrift.annotation.Nullable java.lang.String tbl) {
this.tbl = tbl;
return this;
}
public void unsetTbl() {
this.tbl = null;
}
/** Returns true if field tbl is set (has been assigned a value) and false otherwise */
public boolean isSetTbl() {
return this.tbl != null;
}
public void setTblIsSet(boolean value) {
if (!value) {
this.tbl = null;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getUserIp() {
return this.user_ip;
}
public TLoadTxnCommitRequest 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;
}
}
public long getTxnId() {
return this.txnId;
}
public TLoadTxnCommitRequest setTxnId(long txnId) {
this.txnId = txnId;
setTxnIdIsSet(true);
return this;
}
public void unsetTxnId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TXNID_ISSET_ID);
}
/** Returns true if field txnId is set (has been assigned a value) and false otherwise */
public boolean isSetTxnId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TXNID_ISSET_ID);
}
public void setTxnIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TXNID_ISSET_ID, value);
}
public boolean isSync() {
return this.sync;
}
public TLoadTxnCommitRequest setSync(boolean sync) {
this.sync = sync;
setSyncIsSet(true);
return this;
}
public void unsetSync() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __SYNC_ISSET_ID);
}
/** Returns true if field sync is set (has been assigned a value) and false otherwise */
public boolean isSetSync() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __SYNC_ISSET_ID);
}
public void setSyncIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __SYNC_ISSET_ID, value);
}
public int getCommitInfosSize() {
return (this.commitInfos == null) ? 0 : this.commitInfos.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<org.apache.doris.thrift.TTabletCommitInfo> getCommitInfosIterator() {
return (this.commitInfos == null) ? null : this.commitInfos.iterator();
}
public void addToCommitInfos(org.apache.doris.thrift.TTabletCommitInfo elem) {
if (this.commitInfos == null) {
this.commitInfos = new java.util.ArrayList<org.apache.doris.thrift.TTabletCommitInfo>();
}
this.commitInfos.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<org.apache.doris.thrift.TTabletCommitInfo> getCommitInfos() {
return this.commitInfos;
}
public TLoadTxnCommitRequest setCommitInfos(@org.apache.thrift.annotation.Nullable java.util.List<org.apache.doris.thrift.TTabletCommitInfo> commitInfos) {
this.commitInfos = commitInfos;
return this;
}
public void unsetCommitInfos() {
this.commitInfos = null;
}
/** Returns true if field commitInfos is set (has been assigned a value) and false otherwise */
public boolean isSetCommitInfos() {
return this.commitInfos != null;
}
public void setCommitInfosIsSet(boolean value) {
if (!value) {
this.commitInfos = null;
}
}
public long getAuthCode() {
return this.auth_code;
}
public TLoadTxnCommitRequest setAuthCode(long auth_code) {
this.auth_code = auth_code;
setAuthCodeIsSet(true);
return this;
}
public void unsetAuthCode() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __AUTH_CODE_ISSET_ID);
}
/** Returns true if field auth_code is set (has been assigned a value) and false otherwise */
public boolean isSetAuthCode() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __AUTH_CODE_ISSET_ID);
}
public void setAuthCodeIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __AUTH_CODE_ISSET_ID, value);
}
@org.apache.thrift.annotation.Nullable
public TTxnCommitAttachment getTxnCommitAttachment() {
return this.txnCommitAttachment;
}
public TLoadTxnCommitRequest setTxnCommitAttachment(@org.apache.thrift.annotation.Nullable TTxnCommitAttachment txnCommitAttachment) {
this.txnCommitAttachment = txnCommitAttachment;
return this;
}
public void unsetTxnCommitAttachment() {
this.txnCommitAttachment = null;
}
/** Returns true if field txnCommitAttachment is set (has been assigned a value) and false otherwise */
public boolean isSetTxnCommitAttachment() {
return this.txnCommitAttachment != null;
}
public void setTxnCommitAttachmentIsSet(boolean value) {
if (!value) {
this.txnCommitAttachment = null;
}
}
public long getThriftRpcTimeoutMs() {
return this.thrift_rpc_timeout_ms;
}
public TLoadTxnCommitRequest setThriftRpcTimeoutMs(long thrift_rpc_timeout_ms) {
this.thrift_rpc_timeout_ms = thrift_rpc_timeout_ms;
setThriftRpcTimeoutMsIsSet(true);
return this;
}
public void unsetThriftRpcTimeoutMs() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __THRIFT_RPC_TIMEOUT_MS_ISSET_ID);
}
/** Returns true if field thrift_rpc_timeout_ms is set (has been assigned a value) and false otherwise */
public boolean isSetThriftRpcTimeoutMs() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __THRIFT_RPC_TIMEOUT_MS_ISSET_ID);
}
public void setThriftRpcTimeoutMsIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __THRIFT_RPC_TIMEOUT_MS_ISSET_ID, value);
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getToken() {
return this.token;
}
public TLoadTxnCommitRequest setToken(@org.apache.thrift.annotation.Nullable java.lang.String token) {
this.token = token;
return this;
}
public void unsetToken() {
this.token = null;
}
/** Returns true if field token is set (has been assigned a value) and false otherwise */
public boolean isSetToken() {
return this.token != null;
}
public void setTokenIsSet(boolean value) {
if (!value) {
this.token = null;
}
}
public long getDbId() {
return this.db_id;
}
public TLoadTxnCommitRequest setDbId(long db_id) {
this.db_id = db_id;
setDbIdIsSet(true);
return this;
}
public void unsetDbId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __DB_ID_ISSET_ID);
}
/** Returns true if field db_id is set (has been assigned a value) and false otherwise */
public boolean isSetDbId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __DB_ID_ISSET_ID);
}
public void setDbIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __DB_ID_ISSET_ID, value);
}
public int getTblsSize() {
return (this.tbls == null) ? 0 : this.tbls.size();
}
@org.apache.thrift.annotation.Nullable
public java.util.Iterator<java.lang.String> getTblsIterator() {
return (this.tbls == null) ? null : this.tbls.iterator();
}
public void addToTbls(java.lang.String elem) {
if (this.tbls == null) {
this.tbls = new java.util.ArrayList<java.lang.String>();
}
this.tbls.add(elem);
}
@org.apache.thrift.annotation.Nullable
public java.util.List<java.lang.String> getTbls() {
return this.tbls;
}
public TLoadTxnCommitRequest setTbls(@org.apache.thrift.annotation.Nullable java.util.List<java.lang.String> tbls) {
this.tbls = tbls;
return this;
}
public void unsetTbls() {
this.tbls = null;
}
/** Returns true if field tbls is set (has been assigned a value) and false otherwise */
public boolean isSetTbls() {
return this.tbls != null;
}
public void setTblsIsSet(boolean value) {
if (!value) {
this.tbls = null;
}
}
public long getTableId() {
return this.table_id;
}
public TLoadTxnCommitRequest setTableId(long table_id) {
this.table_id = table_id;
setTableIdIsSet(true);
return this;
}
public void unsetTableId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __TABLE_ID_ISSET_ID);
}
/** Returns true if field table_id is set (has been assigned a value) and false otherwise */
public boolean isSetTableId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __TABLE_ID_ISSET_ID);
}
public void setTableIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __TABLE_ID_ISSET_ID, value);
}
@org.apache.thrift.annotation.Nullable
public java.lang.String getAuthCodeUuid() {
return this.auth_code_uuid;
}
public TLoadTxnCommitRequest setAuthCodeUuid(@org.apache.thrift.annotation.Nullable java.lang.String auth_code_uuid) {
this.auth_code_uuid = auth_code_uuid;
return this;
}
public void unsetAuthCodeUuid() {
this.auth_code_uuid = null;
}
/** Returns true if field auth_code_uuid is set (has been assigned a value) and false otherwise */
public boolean isSetAuthCodeUuid() {
return this.auth_code_uuid != null;
}
public void setAuthCodeUuidIsSet(boolean value) {
if (!value) {
this.auth_code_uuid = null;
}
}
public boolean isGroupCommit() {
return this.groupCommit;
}
public TLoadTxnCommitRequest setGroupCommit(boolean groupCommit) {
this.groupCommit = groupCommit;
setGroupCommitIsSet(true);
return this;
}
public void unsetGroupCommit() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __GROUPCOMMIT_ISSET_ID);
}
/** Returns true if field groupCommit is set (has been assigned a value) and false otherwise */
public boolean isSetGroupCommit() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __GROUPCOMMIT_ISSET_ID);
}
public void setGroupCommitIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __GROUPCOMMIT_ISSET_ID, value);
}
public long getReceiveBytes() {
return this.receiveBytes;
}
public TLoadTxnCommitRequest setReceiveBytes(long receiveBytes) {
this.receiveBytes = receiveBytes;
setReceiveBytesIsSet(true);
return this;
}
public void unsetReceiveBytes() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __RECEIVEBYTES_ISSET_ID);
}
/** Returns true if field receiveBytes is set (has been assigned a value) and false otherwise */
public boolean isSetReceiveBytes() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __RECEIVEBYTES_ISSET_ID);
}
public void setReceiveBytesIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __RECEIVEBYTES_ISSET_ID, value);
}
public long getBackendId() {
return this.backendId;
}
public TLoadTxnCommitRequest setBackendId(long backendId) {
this.backendId = backendId;
setBackendIdIsSet(true);
return this;
}
public void unsetBackendId() {
__isset_bitfield = org.apache.thrift.EncodingUtils.clearBit(__isset_bitfield, __BACKENDID_ISSET_ID);
}
/** Returns true if field backendId is set (has been assigned a value) and false otherwise */
public boolean isSetBackendId() {
return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __BACKENDID_ISSET_ID);
}
public void setBackendIdIsSet(boolean value) {
__isset_bitfield = org.apache.thrift.EncodingUtils.setBit(__isset_bitfield, __BACKENDID_ISSET_ID, value);
}
@org.apache.thrift.annotation.Nullable
public TCertBasedAuth getCertBasedAuth() {
return this.cert_based_auth;
}
public TLoadTxnCommitRequest setCertBasedAuth(@org.apache.thrift.annotation.Nullable TCertBasedAuth cert_based_auth) {
this.cert_based_auth = cert_based_auth;
return this;
}
public void unsetCertBasedAuth() {
this.cert_based_auth = null;
}
/** Returns true if field cert_based_auth is set (has been assigned a value) and false otherwise */
public boolean isSetCertBasedAuth() {
return this.cert_based_auth != null;
}
public void setCertBasedAuthIsSet(boolean value) {
if (!value) {
this.cert_based_auth = null;
}
}
public void setFieldValue(_Fields field, @org.apache.thrift.annotation.Nullable java.lang.Object value) {
switch (field) {
case CLUSTER:
if (value == null) {
unsetCluster();
} else {
setCluster((java.lang.String)value);
}
break;
case USER:
if (value == null) {
unsetUser();
} else {
setUser((java.lang.String)value);
}
break;
case PASSWD:
if (value == null) {
unsetPasswd();
} else {
setPasswd((java.lang.String)value);
}
break;
case DB:
if (value == null) {
unsetDb();
} else {
setDb((java.lang.String)value);
}
break;
case TBL:
if (value == null) {
unsetTbl();
} else {
setTbl((java.lang.String)value);
}
break;
case USER_IP:
if (value == null) {
unsetUserIp();
} else {
setUserIp((java.lang.String)value);
}
break;
case TXN_ID:
if (value == null) {
unsetTxnId();
} else {
setTxnId((java.lang.Long)value);
}
break;
case SYNC:
if (value == null) {
unsetSync();
} else {
setSync((java.lang.Boolean)value);
}
break;
case COMMIT_INFOS:
if (value == null) {
unsetCommitInfos();
} else {
setCommitInfos((java.util.List<org.apache.doris.thrift.TTabletCommitInfo>)value);
}
break;
case AUTH_CODE:
if (value == null) {
unsetAuthCode();
} else {
setAuthCode((java.lang.Long)value);
}
break;
case TXN_COMMIT_ATTACHMENT:
if (value == null) {
unsetTxnCommitAttachment();
} else {
setTxnCommitAttachment((TTxnCommitAttachment)value);
}
break;
case THRIFT_RPC_TIMEOUT_MS:
if (value == null) {
unsetThriftRpcTimeoutMs();
} else {
setThriftRpcTimeoutMs((java.lang.Long)value);
}
break;
case TOKEN:
if (value == null) {
unsetToken();
} else {
setToken((java.lang.String)value);
}
break;
case DB_ID:
if (value == null) {
unsetDbId();
} else {
setDbId((java.lang.Long)value);
}
break;
case TBLS:
if (value == null) {
unsetTbls();
} else {
setTbls((java.util.List<java.lang.String>)value);
}
break;
case TABLE_ID:
if (value == null) {
unsetTableId();
} else {
setTableId((java.lang.Long)value);
}
break;
case AUTH_CODE_UUID:
if (value == null) {
unsetAuthCodeUuid();
} else {
setAuthCodeUuid((java.lang.String)value);
}
break;
case GROUP_COMMIT:
if (value == null) {
unsetGroupCommit();
} else {
setGroupCommit((java.lang.Boolean)value);
}
break;
case RECEIVE_BYTES:
if (value == null) {
unsetReceiveBytes();
} else {
setReceiveBytes((java.lang.Long)value);
}
break;
case BACKEND_ID:
if (value == null) {
unsetBackendId();
} else {
setBackendId((java.lang.Long)value);
}
break;
case CERT_BASED_AUTH:
if (value == null) {
unsetCertBasedAuth();
} else {
setCertBasedAuth((TCertBasedAuth)value);
}
break;
}
}
@org.apache.thrift.annotation.Nullable
public java.lang.Object getFieldValue(_Fields field) {
switch (field) {
case CLUSTER:
return getCluster();
case USER:
return getUser();
case PASSWD:
return getPasswd();
case DB:
return getDb();
case TBL:
return getTbl();
case USER_IP:
return getUserIp();
case TXN_ID:
return getTxnId();
case SYNC:
return isSync();
case COMMIT_INFOS:
return getCommitInfos();
case AUTH_CODE:
return getAuthCode();
case TXN_COMMIT_ATTACHMENT:
return getTxnCommitAttachment();
case THRIFT_RPC_TIMEOUT_MS:
return getThriftRpcTimeoutMs();
case TOKEN:
return getToken();
case DB_ID:
return getDbId();
case TBLS:
return getTbls();
case TABLE_ID:
return getTableId();
case AUTH_CODE_UUID:
return getAuthCodeUuid();
case GROUP_COMMIT:
return isGroupCommit();
case RECEIVE_BYTES:
return getReceiveBytes();
case BACKEND_ID:
return getBackendId();
case CERT_BASED_AUTH:
return getCertBasedAuth();
}
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 CLUSTER:
return isSetCluster();
case USER:
return isSetUser();
case PASSWD:
return isSetPasswd();
case DB:
return isSetDb();
case TBL:
return isSetTbl();
case USER_IP:
return isSetUserIp();
case TXN_ID:
return isSetTxnId();
case SYNC:
return isSetSync();
case COMMIT_INFOS:
return isSetCommitInfos();
case AUTH_CODE:
return isSetAuthCode();
case TXN_COMMIT_ATTACHMENT:
return isSetTxnCommitAttachment();
case THRIFT_RPC_TIMEOUT_MS:
return isSetThriftRpcTimeoutMs();
case TOKEN:
return isSetToken();
case DB_ID:
return isSetDbId();
case TBLS:
return isSetTbls();
case TABLE_ID:
return isSetTableId();
case AUTH_CODE_UUID:
return isSetAuthCodeUuid();
case GROUP_COMMIT:
return isSetGroupCommit();
case RECEIVE_BYTES:
return isSetReceiveBytes();
case BACKEND_ID:
return isSetBackendId();
case CERT_BASED_AUTH:
return isSetCertBasedAuth();
}
throw new java.lang.IllegalStateException();
}
@Override
public boolean equals(java.lang.Object that) {
if (that instanceof TLoadTxnCommitRequest)
return this.equals((TLoadTxnCommitRequest)that);
return false;
}
public boolean equals(TLoadTxnCommitRequest that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_cluster = true && this.isSetCluster();
boolean that_present_cluster = true && that.isSetCluster();
if (this_present_cluster || that_present_cluster) {
if (!(this_present_cluster && that_present_cluster))
return false;
if (!this.cluster.equals(that.cluster))
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_passwd = true && this.isSetPasswd();
boolean that_present_passwd = true && that.isSetPasswd();
if (this_present_passwd || that_present_passwd) {
if (!(this_present_passwd && that_present_passwd))
return false;
if (!this.passwd.equals(that.passwd))
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_tbl = true && this.isSetTbl();
boolean that_present_tbl = true && that.isSetTbl();
if (this_present_tbl || that_present_tbl) {
if (!(this_present_tbl && that_present_tbl))
return false;
if (!this.tbl.equals(that.tbl))
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_txnId = true;
boolean that_present_txnId = true;
if (this_present_txnId || that_present_txnId) {
if (!(this_present_txnId && that_present_txnId))
return false;
if (this.txnId != that.txnId)
return false;
}
boolean this_present_sync = true;
boolean that_present_sync = true;
if (this_present_sync || that_present_sync) {
if (!(this_present_sync && that_present_sync))
return false;
if (this.sync != that.sync)
return false;
}
boolean this_present_commitInfos = true && this.isSetCommitInfos();
boolean that_present_commitInfos = true && that.isSetCommitInfos();
if (this_present_commitInfos || that_present_commitInfos) {
if (!(this_present_commitInfos && that_present_commitInfos))
return false;
if (!this.commitInfos.equals(that.commitInfos))
return false;
}
boolean this_present_auth_code = true && this.isSetAuthCode();
boolean that_present_auth_code = true && that.isSetAuthCode();
if (this_present_auth_code || that_present_auth_code) {
if (!(this_present_auth_code && that_present_auth_code))
return false;
if (this.auth_code != that.auth_code)
return false;
}
boolean this_present_txnCommitAttachment = true && this.isSetTxnCommitAttachment();
boolean that_present_txnCommitAttachment = true && that.isSetTxnCommitAttachment();
if (this_present_txnCommitAttachment || that_present_txnCommitAttachment) {
if (!(this_present_txnCommitAttachment && that_present_txnCommitAttachment))
return false;
if (!this.txnCommitAttachment.equals(that.txnCommitAttachment))
return false;
}
boolean this_present_thrift_rpc_timeout_ms = true && this.isSetThriftRpcTimeoutMs();
boolean that_present_thrift_rpc_timeout_ms = true && that.isSetThriftRpcTimeoutMs();
if (this_present_thrift_rpc_timeout_ms || that_present_thrift_rpc_timeout_ms) {
if (!(this_present_thrift_rpc_timeout_ms && that_present_thrift_rpc_timeout_ms))
return false;
if (this.thrift_rpc_timeout_ms != that.thrift_rpc_timeout_ms)
return false;
}
boolean this_present_token = true && this.isSetToken();
boolean that_present_token = true && that.isSetToken();
if (this_present_token || that_present_token) {
if (!(this_present_token && that_present_token))
return false;
if (!this.token.equals(that.token))
return false;
}
boolean this_present_db_id = true && this.isSetDbId();
boolean that_present_db_id = true && that.isSetDbId();
if (this_present_db_id || that_present_db_id) {
if (!(this_present_db_id && that_present_db_id))
return false;
if (this.db_id != that.db_id)
return false;
}
boolean this_present_tbls = true && this.isSetTbls();
boolean that_present_tbls = true && that.isSetTbls();
if (this_present_tbls || that_present_tbls) {
if (!(this_present_tbls && that_present_tbls))
return false;
if (!this.tbls.equals(that.tbls))
return false;
}
boolean this_present_table_id = true && this.isSetTableId();
boolean that_present_table_id = true && that.isSetTableId();
if (this_present_table_id || that_present_table_id) {
if (!(this_present_table_id && that_present_table_id))
return false;
if (this.table_id != that.table_id)
return false;
}
boolean this_present_auth_code_uuid = true && this.isSetAuthCodeUuid();
boolean that_present_auth_code_uuid = true && that.isSetAuthCodeUuid();
if (this_present_auth_code_uuid || that_present_auth_code_uuid) {
if (!(this_present_auth_code_uuid && that_present_auth_code_uuid))
return false;
if (!this.auth_code_uuid.equals(that.auth_code_uuid))
return false;
}
boolean this_present_groupCommit = true && this.isSetGroupCommit();
boolean that_present_groupCommit = true && that.isSetGroupCommit();
if (this_present_groupCommit || that_present_groupCommit) {
if (!(this_present_groupCommit && that_present_groupCommit))
return false;
if (this.groupCommit != that.groupCommit)
return false;
}
boolean this_present_receiveBytes = true && this.isSetReceiveBytes();
boolean that_present_receiveBytes = true && that.isSetReceiveBytes();
if (this_present_receiveBytes || that_present_receiveBytes) {
if (!(this_present_receiveBytes && that_present_receiveBytes))
return false;
if (this.receiveBytes != that.receiveBytes)
return false;
}
boolean this_present_backendId = true && this.isSetBackendId();
boolean that_present_backendId = true && that.isSetBackendId();
if (this_present_backendId || that_present_backendId) {
if (!(this_present_backendId && that_present_backendId))
return false;
if (this.backendId != that.backendId)
return false;
}
boolean this_present_cert_based_auth = true && this.isSetCertBasedAuth();
boolean that_present_cert_based_auth = true && that.isSetCertBasedAuth();
if (this_present_cert_based_auth || that_present_cert_based_auth) {
if (!(this_present_cert_based_auth && that_present_cert_based_auth))
return false;
if (!this.cert_based_auth.equals(that.cert_based_auth))
return false;
}
return true;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = hashCode * 8191 + ((isSetCluster()) ? 131071 : 524287);
if (isSetCluster())
hashCode = hashCode * 8191 + cluster.hashCode();
hashCode = hashCode * 8191 + ((isSetUser()) ? 131071 : 524287);
if (isSetUser())
hashCode = hashCode * 8191 + user.hashCode();
hashCode = hashCode * 8191 + ((isSetPasswd()) ? 131071 : 524287);
if (isSetPasswd())
hashCode = hashCode * 8191 + passwd.hashCode();
hashCode = hashCode * 8191 + ((isSetDb()) ? 131071 : 524287);
if (isSetDb())
hashCode = hashCode * 8191 + db.hashCode();
hashCode = hashCode * 8191 + ((isSetTbl()) ? 131071 : 524287);
if (isSetTbl())
hashCode = hashCode * 8191 + tbl.hashCode();
hashCode = hashCode * 8191 + ((isSetUserIp()) ? 131071 : 524287);
if (isSetUserIp())
hashCode = hashCode * 8191 + user_ip.hashCode();
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(txnId);
hashCode = hashCode * 8191 + ((sync) ? 131071 : 524287);
hashCode = hashCode * 8191 + ((isSetCommitInfos()) ? 131071 : 524287);
if (isSetCommitInfos())
hashCode = hashCode * 8191 + commitInfos.hashCode();
hashCode = hashCode * 8191 + ((isSetAuthCode()) ? 131071 : 524287);
if (isSetAuthCode())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(auth_code);
hashCode = hashCode * 8191 + ((isSetTxnCommitAttachment()) ? 131071 : 524287);
if (isSetTxnCommitAttachment())
hashCode = hashCode * 8191 + txnCommitAttachment.hashCode();
hashCode = hashCode * 8191 + ((isSetThriftRpcTimeoutMs()) ? 131071 : 524287);
if (isSetThriftRpcTimeoutMs())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(thrift_rpc_timeout_ms);
hashCode = hashCode * 8191 + ((isSetToken()) ? 131071 : 524287);
if (isSetToken())
hashCode = hashCode * 8191 + token.hashCode();
hashCode = hashCode * 8191 + ((isSetDbId()) ? 131071 : 524287);
if (isSetDbId())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(db_id);
hashCode = hashCode * 8191 + ((isSetTbls()) ? 131071 : 524287);
if (isSetTbls())
hashCode = hashCode * 8191 + tbls.hashCode();
hashCode = hashCode * 8191 + ((isSetTableId()) ? 131071 : 524287);
if (isSetTableId())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(table_id);
hashCode = hashCode * 8191 + ((isSetAuthCodeUuid()) ? 131071 : 524287);
if (isSetAuthCodeUuid())
hashCode = hashCode * 8191 + auth_code_uuid.hashCode();
hashCode = hashCode * 8191 + ((isSetGroupCommit()) ? 131071 : 524287);
if (isSetGroupCommit())
hashCode = hashCode * 8191 + ((groupCommit) ? 131071 : 524287);
hashCode = hashCode * 8191 + ((isSetReceiveBytes()) ? 131071 : 524287);
if (isSetReceiveBytes())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(receiveBytes);
hashCode = hashCode * 8191 + ((isSetBackendId()) ? 131071 : 524287);
if (isSetBackendId())
hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(backendId);
hashCode = hashCode * 8191 + ((isSetCertBasedAuth()) ? 131071 : 524287);
if (isSetCertBasedAuth())
hashCode = hashCode * 8191 + cert_based_auth.hashCode();
return hashCode;
}
@Override
public int compareTo(TLoadTxnCommitRequest other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = java.lang.Boolean.compare(isSetCluster(), other.isSetCluster());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCluster()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cluster, other.cluster);
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(isSetPasswd(), other.isSetPasswd());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetPasswd()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.passwd, other.passwd);
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(isSetTbl(), other.isSetTbl());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTbl()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl, other.tbl);
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(isSetTxnId(), other.isSetTxnId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTxnId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, other.txnId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetSync(), other.isSetSync());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSync()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sync, other.sync);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetCommitInfos(), other.isSetCommitInfos());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCommitInfos()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.commitInfos, other.commitInfos);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetAuthCode(), other.isSetAuthCode());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetAuthCode()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.auth_code, other.auth_code);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetTxnCommitAttachment(), other.isSetTxnCommitAttachment());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTxnCommitAttachment()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnCommitAttachment, other.txnCommitAttachment);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetThriftRpcTimeoutMs(), other.isSetThriftRpcTimeoutMs());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetThriftRpcTimeoutMs()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.thrift_rpc_timeout_ms, other.thrift_rpc_timeout_ms);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetToken(), other.isSetToken());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetToken()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.token, other.token);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetDbId(), other.isSetDbId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetDbId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_id, other.db_id);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetTbls(), other.isSetTbls());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTbls()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbls, other.tbls);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetTableId(), other.isSetTableId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetTableId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_id, other.table_id);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetAuthCodeUuid(), other.isSetAuthCodeUuid());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetAuthCodeUuid()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.auth_code_uuid, other.auth_code_uuid);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetGroupCommit(), other.isSetGroupCommit());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetGroupCommit()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.groupCommit, other.groupCommit);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetReceiveBytes(), other.isSetReceiveBytes());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetReceiveBytes()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receiveBytes, other.receiveBytes);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetBackendId(), other.isSetBackendId());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetBackendId()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.backendId, other.backendId);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = java.lang.Boolean.compare(isSetCertBasedAuth(), other.isSetCertBasedAuth());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetCertBasedAuth()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cert_based_auth, other.cert_based_auth);
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("TLoadTxnCommitRequest(");
boolean first = true;
if (isSetCluster()) {
sb.append("cluster:");
if (this.cluster == null) {
sb.append("null");
} else {
sb.append(this.cluster);
}
first = false;
}
if (!first) sb.append(", ");
sb.append("user:");
if (this.user == null) {
sb.append("null");
} else {
sb.append(this.user);
}
first = false;
if (!first) sb.append(", ");
sb.append("passwd:");
if (this.passwd == null) {
sb.append("null");
} else {
sb.append(this.passwd);
}
first = false;
if (!first) sb.append(", ");
sb.append("db:");
if (this.db == null) {
sb.append("null");
} else {
sb.append(this.db);
}
first = false;
if (!first) sb.append(", ");
sb.append("tbl:");
if (this.tbl == null) {
sb.append("null");
} else {
sb.append(this.tbl);
}
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 (!first) sb.append(", ");
sb.append("txnId:");
sb.append(this.txnId);
first = false;
if (!first) sb.append(", ");
sb.append("sync:");
sb.append(this.sync);
first = false;
if (isSetCommitInfos()) {
if (!first) sb.append(", ");
sb.append("commitInfos:");
if (this.commitInfos == null) {
sb.append("null");
} else {
sb.append(this.commitInfos);
}
first = false;
}
if (isSetAuthCode()) {
if (!first) sb.append(", ");
sb.append("auth_code:");
sb.append(this.auth_code);
first = false;
}
if (isSetTxnCommitAttachment()) {
if (!first) sb.append(", ");
sb.append("txnCommitAttachment:");
if (this.txnCommitAttachment == null) {
sb.append("null");
} else {
sb.append(this.txnCommitAttachment);
}
first = false;
}
if (isSetThriftRpcTimeoutMs()) {
if (!first) sb.append(", ");
sb.append("thrift_rpc_timeout_ms:");
sb.append(this.thrift_rpc_timeout_ms);
first = false;
}
if (isSetToken()) {
if (!first) sb.append(", ");
sb.append("token:");
if (this.token == null) {
sb.append("null");
} else {
sb.append(this.token);
}
first = false;
}
if (isSetDbId()) {
if (!first) sb.append(", ");
sb.append("db_id:");
sb.append(this.db_id);
first = false;
}
if (isSetTbls()) {
if (!first) sb.append(", ");
sb.append("tbls:");
if (this.tbls == null) {
sb.append("null");
} else {
sb.append(this.tbls);
}
first = false;
}
if (isSetTableId()) {
if (!first) sb.append(", ");
sb.append("table_id:");
sb.append(this.table_id);
first = false;
}
if (isSetAuthCodeUuid()) {
if (!first) sb.append(", ");
sb.append("auth_code_uuid:");
if (this.auth_code_uuid == null) {
sb.append("null");
} else {
sb.append(this.auth_code_uuid);
}
first = false;
}
if (isSetGroupCommit()) {
if (!first) sb.append(", ");
sb.append("groupCommit:");
sb.append(this.groupCommit);
first = false;
}
if (isSetReceiveBytes()) {
if (!first) sb.append(", ");
sb.append("receiveBytes:");
sb.append(this.receiveBytes);
first = false;
}
if (isSetBackendId()) {
if (!first) sb.append(", ");
sb.append("backendId:");
sb.append(this.backendId);
first = false;
}
if (isSetCertBasedAuth()) {
if (!first) sb.append(", ");
sb.append("cert_based_auth:");
if (this.cert_based_auth == null) {
sb.append("null");
} else {
sb.append(this.cert_based_auth);
}
first = false;
}
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
if (user == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'user' was not present! Struct: " + toString());
}
if (passwd == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'passwd' was not present! Struct: " + toString());
}
if (db == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'db' was not present! Struct: " + toString());
}
if (tbl == null) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'tbl' was not present! Struct: " + toString());
}
// alas, we cannot check 'txnId' because it's a primitive and you chose the non-beans generator.
// alas, we cannot check 'sync' because it's a primitive and you chose the non-beans generator.
// check for sub-struct validity
if (txnCommitAttachment != null) {
txnCommitAttachment.validate();
}
if (cert_based_auth != null) {
cert_based_auth.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 TLoadTxnCommitRequestStandardSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TLoadTxnCommitRequestStandardScheme getScheme() {
return new TLoadTxnCommitRequestStandardScheme();
}
}
private static class TLoadTxnCommitRequestStandardScheme extends org.apache.thrift.scheme.StandardScheme<TLoadTxnCommitRequest> {
public void read(org.apache.thrift.protocol.TProtocol iprot, TLoadTxnCommitRequest 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: // CLUSTER
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.cluster = iprot.readString();
struct.setClusterIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // 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 3: // PASSWD
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.passwd = iprot.readString();
struct.setPasswdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 4: // 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 5: // TBL
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.tbl = iprot.readString();
struct.setTblIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 6: // 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 7: // TXN_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.txnId = iprot.readI64();
struct.setTxnIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 8: // SYNC
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.sync = iprot.readBool();
struct.setSyncIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 9: // COMMIT_INFOS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list394 = iprot.readListBegin();
struct.commitInfos = new java.util.ArrayList<org.apache.doris.thrift.TTabletCommitInfo>(_list394.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TTabletCommitInfo _elem395;
for (int _i396 = 0; _i396 < _list394.size; ++_i396)
{
_elem395 = new org.apache.doris.thrift.TTabletCommitInfo();
_elem395.read(iprot);
struct.commitInfos.add(_elem395);
}
iprot.readListEnd();
}
struct.setCommitInfosIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 10: // AUTH_CODE
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.auth_code = iprot.readI64();
struct.setAuthCodeIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 11: // TXN_COMMIT_ATTACHMENT
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.txnCommitAttachment = new TTxnCommitAttachment();
struct.txnCommitAttachment.read(iprot);
struct.setTxnCommitAttachmentIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 12: // THRIFT_RPC_TIMEOUT_MS
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.thrift_rpc_timeout_ms = iprot.readI64();
struct.setThriftRpcTimeoutMsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 13: // TOKEN
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.token = iprot.readString();
struct.setTokenIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 14: // DB_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.db_id = iprot.readI64();
struct.setDbIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 15: // TBLS
if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
{
org.apache.thrift.protocol.TList _list397 = iprot.readListBegin();
struct.tbls = new java.util.ArrayList<java.lang.String>(_list397.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem398;
for (int _i399 = 0; _i399 < _list397.size; ++_i399)
{
_elem398 = iprot.readString();
struct.tbls.add(_elem398);
}
iprot.readListEnd();
}
struct.setTblsIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 16: // TABLE_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.table_id = iprot.readI64();
struct.setTableIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 17: // AUTH_CODE_UUID
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.auth_code_uuid = iprot.readString();
struct.setAuthCodeUuidIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 18: // GROUP_COMMIT
if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
struct.groupCommit = iprot.readBool();
struct.setGroupCommitIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 19: // RECEIVE_BYTES
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.receiveBytes = iprot.readI64();
struct.setReceiveBytesIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 20: // BACKEND_ID
if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
struct.backendId = iprot.readI64();
struct.setBackendIdIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 21: // CERT_BASED_AUTH
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.cert_based_auth = new TCertBasedAuth();
struct.cert_based_auth.read(iprot);
struct.setCertBasedAuthIsSet(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.isSetTxnId()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnId' was not found in serialized data! Struct: " + toString());
}
if (!struct.isSetSync()) {
throw new org.apache.thrift.protocol.TProtocolException("Required field 'sync' was not found in serialized data! Struct: " + toString());
}
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, TLoadTxnCommitRequest struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.cluster != null) {
if (struct.isSetCluster()) {
oprot.writeFieldBegin(CLUSTER_FIELD_DESC);
oprot.writeString(struct.cluster);
oprot.writeFieldEnd();
}
}
if (struct.user != null) {
oprot.writeFieldBegin(USER_FIELD_DESC);
oprot.writeString(struct.user);
oprot.writeFieldEnd();
}
if (struct.passwd != null) {
oprot.writeFieldBegin(PASSWD_FIELD_DESC);
oprot.writeString(struct.passwd);
oprot.writeFieldEnd();
}
if (struct.db != null) {
oprot.writeFieldBegin(DB_FIELD_DESC);
oprot.writeString(struct.db);
oprot.writeFieldEnd();
}
if (struct.tbl != null) {
oprot.writeFieldBegin(TBL_FIELD_DESC);
oprot.writeString(struct.tbl);
oprot.writeFieldEnd();
}
if (struct.user_ip != null) {
if (struct.isSetUserIp()) {
oprot.writeFieldBegin(USER_IP_FIELD_DESC);
oprot.writeString(struct.user_ip);
oprot.writeFieldEnd();
}
}
oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
oprot.writeI64(struct.txnId);
oprot.writeFieldEnd();
oprot.writeFieldBegin(SYNC_FIELD_DESC);
oprot.writeBool(struct.sync);
oprot.writeFieldEnd();
if (struct.commitInfos != null) {
if (struct.isSetCommitInfos()) {
oprot.writeFieldBegin(COMMIT_INFOS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.commitInfos.size()));
for (org.apache.doris.thrift.TTabletCommitInfo _iter400 : struct.commitInfos)
{
_iter400.write(oprot);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.isSetAuthCode()) {
oprot.writeFieldBegin(AUTH_CODE_FIELD_DESC);
oprot.writeI64(struct.auth_code);
oprot.writeFieldEnd();
}
if (struct.txnCommitAttachment != null) {
if (struct.isSetTxnCommitAttachment()) {
oprot.writeFieldBegin(TXN_COMMIT_ATTACHMENT_FIELD_DESC);
struct.txnCommitAttachment.write(oprot);
oprot.writeFieldEnd();
}
}
if (struct.isSetThriftRpcTimeoutMs()) {
oprot.writeFieldBegin(THRIFT_RPC_TIMEOUT_MS_FIELD_DESC);
oprot.writeI64(struct.thrift_rpc_timeout_ms);
oprot.writeFieldEnd();
}
if (struct.token != null) {
if (struct.isSetToken()) {
oprot.writeFieldBegin(TOKEN_FIELD_DESC);
oprot.writeString(struct.token);
oprot.writeFieldEnd();
}
}
if (struct.isSetDbId()) {
oprot.writeFieldBegin(DB_ID_FIELD_DESC);
oprot.writeI64(struct.db_id);
oprot.writeFieldEnd();
}
if (struct.tbls != null) {
if (struct.isSetTbls()) {
oprot.writeFieldBegin(TBLS_FIELD_DESC);
{
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbls.size()));
for (java.lang.String _iter401 : struct.tbls)
{
oprot.writeString(_iter401);
}
oprot.writeListEnd();
}
oprot.writeFieldEnd();
}
}
if (struct.isSetTableId()) {
oprot.writeFieldBegin(TABLE_ID_FIELD_DESC);
oprot.writeI64(struct.table_id);
oprot.writeFieldEnd();
}
if (struct.auth_code_uuid != null) {
if (struct.isSetAuthCodeUuid()) {
oprot.writeFieldBegin(AUTH_CODE_UUID_FIELD_DESC);
oprot.writeString(struct.auth_code_uuid);
oprot.writeFieldEnd();
}
}
if (struct.isSetGroupCommit()) {
oprot.writeFieldBegin(GROUP_COMMIT_FIELD_DESC);
oprot.writeBool(struct.groupCommit);
oprot.writeFieldEnd();
}
if (struct.isSetReceiveBytes()) {
oprot.writeFieldBegin(RECEIVE_BYTES_FIELD_DESC);
oprot.writeI64(struct.receiveBytes);
oprot.writeFieldEnd();
}
if (struct.isSetBackendId()) {
oprot.writeFieldBegin(BACKEND_ID_FIELD_DESC);
oprot.writeI64(struct.backendId);
oprot.writeFieldEnd();
}
if (struct.cert_based_auth != null) {
if (struct.isSetCertBasedAuth()) {
oprot.writeFieldBegin(CERT_BASED_AUTH_FIELD_DESC);
struct.cert_based_auth.write(oprot);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class TLoadTxnCommitRequestTupleSchemeFactory implements org.apache.thrift.scheme.SchemeFactory {
public TLoadTxnCommitRequestTupleScheme getScheme() {
return new TLoadTxnCommitRequestTupleScheme();
}
}
private static class TLoadTxnCommitRequestTupleScheme extends org.apache.thrift.scheme.TupleScheme<TLoadTxnCommitRequest> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, TLoadTxnCommitRequest struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
oprot.writeString(struct.user);
oprot.writeString(struct.passwd);
oprot.writeString(struct.db);
oprot.writeString(struct.tbl);
oprot.writeI64(struct.txnId);
oprot.writeBool(struct.sync);
java.util.BitSet optionals = new java.util.BitSet();
if (struct.isSetCluster()) {
optionals.set(0);
}
if (struct.isSetUserIp()) {
optionals.set(1);
}
if (struct.isSetCommitInfos()) {
optionals.set(2);
}
if (struct.isSetAuthCode()) {
optionals.set(3);
}
if (struct.isSetTxnCommitAttachment()) {
optionals.set(4);
}
if (struct.isSetThriftRpcTimeoutMs()) {
optionals.set(5);
}
if (struct.isSetToken()) {
optionals.set(6);
}
if (struct.isSetDbId()) {
optionals.set(7);
}
if (struct.isSetTbls()) {
optionals.set(8);
}
if (struct.isSetTableId()) {
optionals.set(9);
}
if (struct.isSetAuthCodeUuid()) {
optionals.set(10);
}
if (struct.isSetGroupCommit()) {
optionals.set(11);
}
if (struct.isSetReceiveBytes()) {
optionals.set(12);
}
if (struct.isSetBackendId()) {
optionals.set(13);
}
if (struct.isSetCertBasedAuth()) {
optionals.set(14);
}
oprot.writeBitSet(optionals, 15);
if (struct.isSetCluster()) {
oprot.writeString(struct.cluster);
}
if (struct.isSetUserIp()) {
oprot.writeString(struct.user_ip);
}
if (struct.isSetCommitInfos()) {
{
oprot.writeI32(struct.commitInfos.size());
for (org.apache.doris.thrift.TTabletCommitInfo _iter402 : struct.commitInfos)
{
_iter402.write(oprot);
}
}
}
if (struct.isSetAuthCode()) {
oprot.writeI64(struct.auth_code);
}
if (struct.isSetTxnCommitAttachment()) {
struct.txnCommitAttachment.write(oprot);
}
if (struct.isSetThriftRpcTimeoutMs()) {
oprot.writeI64(struct.thrift_rpc_timeout_ms);
}
if (struct.isSetToken()) {
oprot.writeString(struct.token);
}
if (struct.isSetDbId()) {
oprot.writeI64(struct.db_id);
}
if (struct.isSetTbls()) {
{
oprot.writeI32(struct.tbls.size());
for (java.lang.String _iter403 : struct.tbls)
{
oprot.writeString(_iter403);
}
}
}
if (struct.isSetTableId()) {
oprot.writeI64(struct.table_id);
}
if (struct.isSetAuthCodeUuid()) {
oprot.writeString(struct.auth_code_uuid);
}
if (struct.isSetGroupCommit()) {
oprot.writeBool(struct.groupCommit);
}
if (struct.isSetReceiveBytes()) {
oprot.writeI64(struct.receiveBytes);
}
if (struct.isSetBackendId()) {
oprot.writeI64(struct.backendId);
}
if (struct.isSetCertBasedAuth()) {
struct.cert_based_auth.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, TLoadTxnCommitRequest struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
struct.user = iprot.readString();
struct.setUserIsSet(true);
struct.passwd = iprot.readString();
struct.setPasswdIsSet(true);
struct.db = iprot.readString();
struct.setDbIsSet(true);
struct.tbl = iprot.readString();
struct.setTblIsSet(true);
struct.txnId = iprot.readI64();
struct.setTxnIdIsSet(true);
struct.sync = iprot.readBool();
struct.setSyncIsSet(true);
java.util.BitSet incoming = iprot.readBitSet(15);
if (incoming.get(0)) {
struct.cluster = iprot.readString();
struct.setClusterIsSet(true);
}
if (incoming.get(1)) {
struct.user_ip = iprot.readString();
struct.setUserIpIsSet(true);
}
if (incoming.get(2)) {
{
org.apache.thrift.protocol.TList _list404 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRUCT);
struct.commitInfos = new java.util.ArrayList<org.apache.doris.thrift.TTabletCommitInfo>(_list404.size);
@org.apache.thrift.annotation.Nullable org.apache.doris.thrift.TTabletCommitInfo _elem405;
for (int _i406 = 0; _i406 < _list404.size; ++_i406)
{
_elem405 = new org.apache.doris.thrift.TTabletCommitInfo();
_elem405.read(iprot);
struct.commitInfos.add(_elem405);
}
}
struct.setCommitInfosIsSet(true);
}
if (incoming.get(3)) {
struct.auth_code = iprot.readI64();
struct.setAuthCodeIsSet(true);
}
if (incoming.get(4)) {
struct.txnCommitAttachment = new TTxnCommitAttachment();
struct.txnCommitAttachment.read(iprot);
struct.setTxnCommitAttachmentIsSet(true);
}
if (incoming.get(5)) {
struct.thrift_rpc_timeout_ms = iprot.readI64();
struct.setThriftRpcTimeoutMsIsSet(true);
}
if (incoming.get(6)) {
struct.token = iprot.readString();
struct.setTokenIsSet(true);
}
if (incoming.get(7)) {
struct.db_id = iprot.readI64();
struct.setDbIdIsSet(true);
}
if (incoming.get(8)) {
{
org.apache.thrift.protocol.TList _list407 = iprot.readListBegin(org.apache.thrift.protocol.TType.STRING);
struct.tbls = new java.util.ArrayList<java.lang.String>(_list407.size);
@org.apache.thrift.annotation.Nullable java.lang.String _elem408;
for (int _i409 = 0; _i409 < _list407.size; ++_i409)
{
_elem408 = iprot.readString();
struct.tbls.add(_elem408);
}
}
struct.setTblsIsSet(true);
}
if (incoming.get(9)) {
struct.table_id = iprot.readI64();
struct.setTableIdIsSet(true);
}
if (incoming.get(10)) {
struct.auth_code_uuid = iprot.readString();
struct.setAuthCodeUuidIsSet(true);
}
if (incoming.get(11)) {
struct.groupCommit = iprot.readBool();
struct.setGroupCommitIsSet(true);
}
if (incoming.get(12)) {
struct.receiveBytes = iprot.readI64();
struct.setReceiveBytesIsSet(true);
}
if (incoming.get(13)) {
struct.backendId = iprot.readI64();
struct.setBackendIdIsSet(true);
}
if (incoming.get(14)) {
struct.cert_based_auth = new TCertBasedAuth();
struct.cert_based_auth.read(iprot);
struct.setCertBasedAuthIsSet(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();
}
}