/** 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(isSetTableName()).compareTo(other.isSetTableName()); if (lastComparison != 0) { return lastComparison; if (isSetTableName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tableName, other.tableName); 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; } }
boolean this_present_tableName = true && this.isSetTableName(); boolean that_present_tableName = true && that.isSetTableName(); if (this_present_tableName || that_present_tableName) { if (!(this_present_tableName && that_present_tableName))
optionals.set(0); if (struct.isSetTableName()) { optionals.set(1); oprot.writeString(struct.tableId); if (struct.isSetTableName()) { oprot.writeString(struct.tableName);