@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_txnid = true; list.add(present_txnid); if (present_txnid) list.add(txnid); boolean present_writeid = true; list.add(present_writeid); if (present_writeid) list.add(writeid); boolean present_dbname = true && (isSetDbname()); list.add(present_dbname); if (present_dbname) list.add(dbname); boolean present_tablename = true && (isSetTablename()); list.add(present_tablename); if (present_tablename) list.add(tablename); boolean present_partitionnames = true && (isSetPartitionnames()); list.add(present_partitionnames); if (present_partitionnames) list.add(partitionnames); boolean present_operationType = true && (isSetOperationType()); list.add(present_operationType); if (present_operationType) list.add(operationType.getValue()); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public AddDynamicPartitions(AddDynamicPartitions other) { __isset_bitfield = other.__isset_bitfield; this.txnid = other.txnid; this.writeid = other.writeid; if (other.isSetDbname()) { this.dbname = other.dbname; } if (other.isSetTablename()) { this.tablename = other.tablename; } if (other.isSetPartitionnames()) { List<String> __this__partitionnames = new ArrayList<String>(other.partitionnames); this.partitionnames = __this__partitionnames; } if (other.isSetOperationType()) { this.operationType = other.operationType; } }
lastComparison = Boolean.valueOf(isSetTablename()).compareTo(other.isSetTablename()); if (lastComparison != 0) { return lastComparison; if (isSetTablename()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, other.tablename); if (lastComparison != 0) {
/** 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 IllegalArgumentException(); } switch (field) { case TXNID: return isSetTxnid(); case WRITEID: return isSetWriteid(); case DBNAME: return isSetDbname(); case TABLENAME: return isSetTablename(); case PARTITIONNAMES: return isSetPartitionnames(); case OPERATION_TYPE: return isSetOperationType(); } throw new IllegalStateException(); }
boolean this_present_tablename = true && this.isSetTablename(); boolean that_present_tablename = true && that.isSetTablename(); if (this_present_tablename || that_present_tablename) { if (!(this_present_tablename && that_present_tablename))
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxnid()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnid' is unset! Struct:" + toString()); } if (!isSetWriteid()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'writeid' is unset! Struct:" + toString()); } if (!isSetDbname()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbname' is unset! Struct:" + toString()); } if (!isSetTablename()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tablename' is unset! Struct:" + toString()); } if (!isSetPartitionnames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'partitionnames' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txnid = true; builder.append(present_txnid); if (present_txnid) builder.append(txnid); boolean present_dbname = true && (isSetDbname()); builder.append(present_dbname); if (present_dbname) builder.append(dbname); boolean present_tablename = true && (isSetTablename()); builder.append(present_tablename); if (present_tablename) builder.append(tablename); boolean present_partitionnames = true && (isSetPartitionnames()); builder.append(present_partitionnames); if (present_partitionnames) builder.append(partitionnames); return builder.toHashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public AddDynamicPartitions(AddDynamicPartitions other) { __isset_bitfield = other.__isset_bitfield; this.txnid = other.txnid; if (other.isSetDbname()) { this.dbname = other.dbname; } if (other.isSetTablename()) { this.tablename = other.tablename; } if (other.isSetPartitionnames()) { List<String> __this__partitionnames = new ArrayList<String>(); for (String other_element : other.partitionnames) { __this__partitionnames.add(other_element); } this.partitionnames = __this__partitionnames; } }
/** * Performs a deep copy on <i>other</i>. */ public AddDynamicPartitions(AddDynamicPartitions other) { __isset_bitfield = other.__isset_bitfield; this.txnid = other.txnid; if (other.isSetDbname()) { this.dbname = other.dbname; } if (other.isSetTablename()) { this.tablename = other.tablename; } if (other.isSetPartitionnames()) { List<String> __this__partitionnames = new ArrayList<String>(); for (String other_element : other.partitionnames) { __this__partitionnames.add(other_element); } this.partitionnames = __this__partitionnames; } }
/** 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 IllegalArgumentException(); } switch (field) { case TXNID: return isSetTxnid(); case DBNAME: return isSetDbname(); case TABLENAME: return isSetTablename(); case PARTITIONNAMES: return isSetPartitionnames(); } throw new 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 IllegalArgumentException(); } switch (field) { case TXNID: return isSetTxnid(); case DBNAME: return isSetDbname(); case TABLENAME: return isSetTablename(); case PARTITIONNAMES: return isSetPartitionnames(); } throw new IllegalStateException(); }
boolean this_present_tablename = true && this.isSetTablename(); boolean that_present_tablename = true && that.isSetTablename(); if (this_present_tablename || that_present_tablename) { if (!(this_present_tablename && that_present_tablename))
lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); if (lastComparison != 0) { return lastComparison; if (isSetTablename()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); if (lastComparison != 0) {
boolean this_present_tablename = true && this.isSetTablename(); boolean that_present_tablename = true && that.isSetTablename(); if (this_present_tablename || that_present_tablename) { if (!(this_present_tablename && that_present_tablename))
lastComparison = Boolean.valueOf(isSetTablename()).compareTo(typedOther.isSetTablename()); if (lastComparison != 0) { return lastComparison; if (isSetTablename()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tablename, typedOther.tablename); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxnid()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnid' is unset! Struct:" + toString()); } if (!isSetDbname()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbname' is unset! Struct:" + toString()); } if (!isSetTablename()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tablename' is unset! Struct:" + toString()); } if (!isSetPartitionnames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'partitionnames' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxnid()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txnid' is unset! Struct:" + toString()); } if (!isSetDbname()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'dbname' is unset! Struct:" + toString()); } if (!isSetTablename()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'tablename' is unset! Struct:" + toString()); } if (!isSetPartitionnames()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'partitionnames' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txnid = true; builder.append(present_txnid); if (present_txnid) builder.append(txnid); boolean present_dbname = true && (isSetDbname()); builder.append(present_dbname); if (present_dbname) builder.append(dbname); boolean present_tablename = true && (isSetTablename()); builder.append(present_tablename); if (present_tablename) builder.append(tablename); boolean present_partitionnames = true && (isSetPartitionnames()); builder.append(present_partitionnames); if (present_partitionnames) builder.append(partitionnames); return builder.toHashCode(); }