if (isSetConfiguration()) { if (!first) sb.append(", "); sb.append("configuration:");
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_status = true && (isSetStatus()); list.add(present_status); if (present_status) list.add(status); boolean present_serverProtocolVersion = true && (isSetServerProtocolVersion()); list.add(present_serverProtocolVersion); if (present_serverProtocolVersion) list.add(serverProtocolVersion.getValue()); boolean present_sessionHandle = true && (isSetSessionHandle()); list.add(present_sessionHandle); if (present_sessionHandle) list.add(sessionHandle); boolean present_configuration = true && (isSetConfiguration()); list.add(present_configuration); if (present_configuration) list.add(configuration); return list.hashCode(); }
/** 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 STATUS: return isSetStatus(); case SERVER_PROTOCOL_VERSION: return isSetServerProtocolVersion(); case SESSION_HANDLE: return isSetSessionHandle(); case CONFIGURATION: return isSetConfiguration(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetConfiguration()).compareTo(other.isSetConfiguration()); if (lastComparison != 0) { return lastComparison; if (isSetConfiguration()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.configuration, other.configuration); if (lastComparison != 0) {
if (struct.isSetConfiguration()) { oprot.writeFieldBegin(CONFIGURATION_FIELD_DESC);
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TOpenSessionResp struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; struct.status.write(oprot); oprot.writeI32(struct.serverProtocolVersion.getValue()); BitSet optionals = new BitSet(); if (struct.isSetSessionHandle()) { optionals.set(0); } if (struct.isSetConfiguration()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetSessionHandle()) { struct.sessionHandle.write(oprot); } if (struct.isSetConfiguration()) { { oprot.writeI32(struct.configuration.size()); for (Map.Entry<String, String> _iter157 : struct.configuration.entrySet()) { oprot.writeString(_iter157.getKey()); oprot.writeString(_iter157.getValue()); } } } }
/** * Performs a deep copy on <i>other</i>. */ public TOpenSessionResp(TOpenSessionResp other) { if (other.isSetStatus()) { this.status = new TStatus(other.status); } if (other.isSetServerProtocolVersion()) { this.serverProtocolVersion = other.serverProtocolVersion; } if (other.isSetSessionHandle()) { this.sessionHandle = new TSessionHandle(other.sessionHandle); } if (other.isSetConfiguration()) { Map<String,String> __this__configuration = new HashMap<String,String>(other.configuration); this.configuration = __this__configuration; } }
boolean this_present_configuration = true && this.isSetConfiguration(); boolean that_present_configuration = true && that.isSetConfiguration(); if (this_present_configuration || that_present_configuration) { if (!(this_present_configuration && that_present_configuration))