@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_txn_high_water_mark = true; list.add(present_txn_high_water_mark); if (present_txn_high_water_mark) list.add(txn_high_water_mark); boolean present_open_txns = true && (isSetOpen_txns()); list.add(present_open_txns); if (present_open_txns) list.add(open_txns); boolean present_min_open_txn = true && (isSetMin_open_txn()); list.add(present_min_open_txn); if (present_min_open_txn) list.add(min_open_txn); boolean present_abortedBits = true && (isSetAbortedBits()); list.add(present_abortedBits); if (present_abortedBits) list.add(abortedBits); return list.hashCode(); }
if (isSetMin_open_txn()) { if (!first) sb.append(", "); sb.append("min_open_txn:");
/** 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 TXN_HIGH_WATER_MARK: return isSetTxn_high_water_mark(); case OPEN_TXNS: return isSetOpen_txns(); case MIN_OPEN_TXN: return isSetMin_open_txn(); case ABORTED_BITS: return isSetAbortedBits(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsResponse struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI64(struct.txn_high_water_mark); { oprot.writeI32(struct.open_txns.size()); for (long _iter590 : struct.open_txns) { oprot.writeI64(_iter590); } } oprot.writeBinary(struct.abortedBits); BitSet optionals = new BitSet(); if (struct.isSetMin_open_txn()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetMin_open_txn()) { oprot.writeI64(struct.min_open_txn); } }
lastComparison = Boolean.valueOf(isSetMin_open_txn()).compareTo(other.isSetMin_open_txn()); if (lastComparison != 0) { return lastComparison; if (isSetMin_open_txn()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min_open_txn, other.min_open_txn); if (lastComparison != 0) {
boolean this_present_min_open_txn = true && this.isSetMin_open_txn(); boolean that_present_min_open_txn = true && that.isSetMin_open_txn(); if (this_present_min_open_txn || that_present_min_open_txn) { if (!(this_present_min_open_txn && that_present_min_open_txn))
if (struct.isSetMin_open_txn()) { oprot.writeFieldBegin(MIN_OPEN_TXN_FIELD_DESC); oprot.writeI64(struct.min_open_txn);
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_txn_high_water_mark = true; list.add(present_txn_high_water_mark); if (present_txn_high_water_mark) list.add(txn_high_water_mark); boolean present_open_txns = true && (isSetOpen_txns()); list.add(present_open_txns); if (present_open_txns) list.add(open_txns); boolean present_min_open_txn = true && (isSetMin_open_txn()); list.add(present_min_open_txn); if (present_min_open_txn) list.add(min_open_txn); boolean present_abortedBits = true && (isSetAbortedBits()); list.add(present_abortedBits); if (present_abortedBits) list.add(abortedBits); return list.hashCode(); }
if (isSetMin_open_txn()) { if (!first) sb.append(", "); sb.append("min_open_txn:");
/** 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 TXN_HIGH_WATER_MARK: return isSetTxn_high_water_mark(); case OPEN_TXNS: return isSetOpen_txns(); case MIN_OPEN_TXN: return isSetMin_open_txn(); case ABORTED_BITS: return isSetAbortedBits(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsResponse struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI64(struct.txn_high_water_mark); { oprot.writeI32(struct.open_txns.size()); for (long _iter566 : struct.open_txns) { oprot.writeI64(_iter566); } } oprot.writeBinary(struct.abortedBits); BitSet optionals = new BitSet(); if (struct.isSetMin_open_txn()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetMin_open_txn()) { oprot.writeI64(struct.min_open_txn); } }
lastComparison = Boolean.valueOf(isSetMin_open_txn()).compareTo(other.isSetMin_open_txn()); if (lastComparison != 0) { return lastComparison; if (isSetMin_open_txn()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min_open_txn, other.min_open_txn); if (lastComparison != 0) {
boolean this_present_min_open_txn = true && this.isSetMin_open_txn(); boolean that_present_min_open_txn = true && that.isSetMin_open_txn(); if (this_present_min_open_txn || that_present_min_open_txn) { if (!(this_present_min_open_txn && that_present_min_open_txn))
if (struct.isSetMin_open_txn()) { oprot.writeFieldBegin(MIN_OPEN_TXN_FIELD_DESC); oprot.writeI64(struct.min_open_txn);