/** 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(isSetTxn_high_water_mark()).compareTo(other.isSetTxn_high_water_mark()); if (lastComparison != 0) { return lastComparison; if (isSetTxn_high_water_mark()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, other.txn_high_water_mark); if (lastComparison != 0) {
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 }
/** 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(); }
public int compareTo(GetOpenTxnsResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; GetOpenTxnsResponse typedOther = (GetOpenTxnsResponse)other; lastComparison = Boolean.valueOf(isSetTxn_high_water_mark()).compareTo(typedOther.isSetTxn_high_water_mark()); if (lastComparison != 0) { return lastComparison; } if (isSetTxn_high_water_mark()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, typedOther.txn_high_water_mark); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOpen_txns()).compareTo(typedOther.isSetOpen_txns()); if (lastComparison != 0) { return lastComparison; } if (isSetOpen_txns()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open_txns, typedOther.open_txns); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(GetOpenTxnsResponse other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; GetOpenTxnsResponse typedOther = (GetOpenTxnsResponse)other; lastComparison = Boolean.valueOf(isSetTxn_high_water_mark()).compareTo(typedOther.isSetTxn_high_water_mark()); if (lastComparison != 0) { return lastComparison; } if (isSetTxn_high_water_mark()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, typedOther.txn_high_water_mark); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetOpen_txns()).compareTo(typedOther.isSetOpen_txns()); if (lastComparison != 0) { return lastComparison; } if (isSetOpen_txns()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.open_txns, typedOther.open_txns); if (lastComparison != 0) { return lastComparison; } } return 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 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(isSetTxn_high_water_mark()).compareTo(other.isSetTxn_high_water_mark()); if (lastComparison != 0) { return lastComparison; if (isSetTxn_high_water_mark()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txn_high_water_mark, other.txn_high_water_mark); if (lastComparison != 0) {
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 }
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 }