if (isSetOperationType()) { if (!first) sb.append(", "); sb.append("operationType:");
@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(); }
if (struct.isSetOperationType()) { oprot.writeFieldBegin(OPERATION_TYPE_FIELD_DESC); oprot.writeI32(struct.operationType.getValue());
/** * 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(isSetOperationType()).compareTo(other.isSetOperationType()); if (lastComparison != 0) { return lastComparison; if (isSetOperationType()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operationType, other.operationType); 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(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI64(struct.txnid); oprot.writeI64(struct.writeid); oprot.writeString(struct.dbname); oprot.writeString(struct.tablename); { oprot.writeI32(struct.partitionnames.size()); for (String _iter744 : struct.partitionnames) { oprot.writeString(_iter744); } } BitSet optionals = new BitSet(); if (struct.isSetOperationType()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetOperationType()) { oprot.writeI32(struct.operationType.getValue()); } }
boolean this_present_operationType = true && this.isSetOperationType(); boolean that_present_operationType = true && that.isSetOperationType(); if (this_present_operationType || that_present_operationType) { if (!(this_present_operationType && that_present_operationType))
if(rqst.isSetOperationType()) { ot = OperationType.fromDataOperationType(rqst.getOperationType());