/** 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 java.lang.IllegalArgumentException(); } switch (field) { case TABLE_ID: return isSetTableId(); case TABLE_NAME: return isSetTableName(); case OP: return isSetOp(); case TYPE: return isSetType(); case DESCRIPTION: return isSetDescription(); } throw new java.lang.IllegalStateException(); }
lastComparison = java.lang.Boolean.valueOf(isSetTableId()).compareTo(other.isSetTableId()); if (lastComparison != 0) { return lastComparison; if (isSetTableId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableId, other.tableId); if (lastComparison != 0) {
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetTableId()) ? 131071 : 524287); if (isSetTableId()) hashCode = hashCode * 8191 + tableId.hashCode(); hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); if (isSetTableName()) hashCode = hashCode * 8191 + tableName.hashCode(); hashCode = hashCode * 8191 + ((isSetOp()) ? 131071 : 524287); if (isSetOp()) hashCode = hashCode * 8191 + op.getValue(); hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287); if (isSetType()) hashCode = hashCode * 8191 + type.getValue(); hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287); if (isSetDescription()) hashCode = hashCode * 8191 + description.hashCode(); return hashCode; }
/** * Performs a deep copy on <i>other</i>. */ public ThriftTableOperationException(ThriftTableOperationException other) { if (other.isSetTableId()) { this.tableId = other.tableId; } if (other.isSetTableName()) { this.tableName = other.tableName; } if (other.isSetOp()) { this.op = other.op; } if (other.isSetType()) { this.type = other.type; } if (other.isSetDescription()) { this.description = other.description; } }
return true; boolean this_present_tableId = true && this.isSetTableId(); boolean that_present_tableId = true && that.isSetTableId(); if (this_present_tableId || that_present_tableId) { if (!(this_present_tableId && that_present_tableId))
org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetTableId()) { optionals.set(0); if (struct.isSetTableId()) { oprot.writeString(struct.tableId);