@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(); }
/** * Performs a deep copy on <i>other</i>. */ public GetOpenTxnsResponse(GetOpenTxnsResponse other) { __isset_bitfield = other.__isset_bitfield; this.txn_high_water_mark = other.txn_high_water_mark; if (other.isSetOpen_txns()) { List<Long> __this__open_txns = new ArrayList<Long>(other.open_txns); this.open_txns = __this__open_txns; } this.min_open_txn = other.min_open_txn; if (other.isSetAbortedBits()) { this.abortedBits = org.apache.thrift.TBaseHelper.copyBinary(other.abortedBits); } }
/** 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(); }
lastComparison = Boolean.valueOf(isSetOpen_txns()).compareTo(other.isSetOpen_txns()); if (lastComparison != 0) { return lastComparison; if (isSetOpen_txns()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open_txns, other.open_txns); if (lastComparison != 0) {
boolean this_present_open_txns = true && this.isSetOpen_txns(); boolean that_present_open_txns = true && that.isSetOpen_txns(); if (this_present_open_txns || that_present_open_txns) { if (!(this_present_open_txns && that_present_open_txns))
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxn_high_water_mark()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txn_high_water_mark' is unset! Struct:" + toString()); } if (!isSetOpen_txns()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'open_txns' is unset! Struct:" + toString()); } if (!isSetAbortedBits()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'abortedBits' is unset! Struct:" + toString()); } // check for sub-struct validity }
public boolean equals(GetOpenTxnsResponse that) { if (that == null) return false; boolean this_present_txn_high_water_mark = true; boolean that_present_txn_high_water_mark = true; if (this_present_txn_high_water_mark || that_present_txn_high_water_mark) { if (!(this_present_txn_high_water_mark && that_present_txn_high_water_mark)) return false; if (this.txn_high_water_mark != that.txn_high_water_mark) return false; } boolean this_present_open_txns = true && this.isSetOpen_txns(); boolean that_present_open_txns = true && that.isSetOpen_txns(); if (this_present_open_txns || that_present_open_txns) { if (!(this_present_open_txns && that_present_open_txns)) return false; if (!this.open_txns.equals(that.open_txns)) return false; } return true; }
public boolean equals(GetOpenTxnsResponse that) { if (that == null) return false; boolean this_present_txn_high_water_mark = true; boolean that_present_txn_high_water_mark = true; if (this_present_txn_high_water_mark || that_present_txn_high_water_mark) { if (!(this_present_txn_high_water_mark && that_present_txn_high_water_mark)) return false; if (this.txn_high_water_mark != that.txn_high_water_mark) return false; } boolean this_present_open_txns = true && this.isSetOpen_txns(); boolean that_present_open_txns = true && that.isSetOpen_txns(); if (this_present_open_txns || that_present_open_txns) { if (!(this_present_open_txns && that_present_open_txns)) return false; if (!this.open_txns.equals(that.open_txns)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public GetOpenTxnsResponse(GetOpenTxnsResponse other) { __isset_bitfield = other.__isset_bitfield; this.txn_high_water_mark = other.txn_high_water_mark; if (other.isSetOpen_txns()) { Set<Long> __this__open_txns = new HashSet<Long>(); for (Long other_element : other.open_txns) { __this__open_txns.add(other_element); } this.open_txns = __this__open_txns; } }
/** * Performs a deep copy on <i>other</i>. */ public GetOpenTxnsResponse(GetOpenTxnsResponse other) { __isset_bitfield = other.__isset_bitfield; this.txn_high_water_mark = other.txn_high_water_mark; if (other.isSetOpen_txns()) { Set<Long> __this__open_txns = new HashSet<Long>(); for (Long other_element : other.open_txns) { __this__open_txns.add(other_element); } this.open_txns = __this__open_txns; } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txn_high_water_mark = true; builder.append(present_txn_high_water_mark); if (present_txn_high_water_mark) builder.append(txn_high_water_mark); boolean present_open_txns = true && (isSetOpen_txns()); builder.append(present_open_txns); if (present_open_txns) builder.append(open_txns); return builder.toHashCode(); }
/** 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(); } 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 TXN_HIGH_WATER_MARK: return isSetTxn_high_water_mark(); case OPEN_TXNS: return isSetOpen_txns(); } throw new IllegalStateException(); }
@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(); }
/** * Performs a deep copy on <i>other</i>. */ public GetOpenTxnsResponse(GetOpenTxnsResponse other) { __isset_bitfield = other.__isset_bitfield; this.txn_high_water_mark = other.txn_high_water_mark; if (other.isSetOpen_txns()) { List<Long> __this__open_txns = new ArrayList<Long>(other.open_txns); this.open_txns = __this__open_txns; } this.min_open_txn = other.min_open_txn; if (other.isSetAbortedBits()) { this.abortedBits = org.apache.thrift.TBaseHelper.copyBinary(other.abortedBits); } }
/** 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(); }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxn_high_water_mark()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txn_high_water_mark' is unset! Struct:" + toString()); } if (!isSetOpen_txns()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'open_txns' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxn_high_water_mark()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txn_high_water_mark' is unset! Struct:" + toString()); } if (!isSetOpen_txns()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'open_txns' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_txn_high_water_mark = true; builder.append(present_txn_high_water_mark); if (present_txn_high_water_mark) builder.append(txn_high_water_mark); boolean present_open_txns = true && (isSetOpen_txns()); builder.append(present_open_txns); if (present_open_txns) builder.append(open_txns); return builder.toHashCode(); }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxn_high_water_mark()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txn_high_water_mark' is unset! Struct:" + toString()); } if (!isSetOpen_txns()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'open_txns' is unset! Struct:" + toString()); } if (!isSetAbortedBits()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'abortedBits' is unset! Struct:" + toString()); } // check for sub-struct validity }