/** 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(); }
lastComparison = Boolean.valueOf(isSetWriteid()).compareTo(other.isSetWriteid()); if (lastComparison != 0) { return lastComparison; if (isSetWriteid()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.writeid, other.writeid); 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 (!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 }