/** * Performs a deep copy on <i>other</i>. */ public SupervisorSummary(SupervisorSummary other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); if (other.is_set_host()) { this.host = other.host; } this.uptime_secs = other.uptime_secs; this.num_workers = other.num_workers; this.num_used_workers = other.num_used_workers; }
return false; boolean this_present_host = true && this.is_set_host(); boolean that_present_host = true && that.is_set_host(); if (this_present_host || that_present_host) { if (!(this_present_host && that_present_host))
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_host = true && (is_set_host()); builder.append(present_host); if (present_host) builder.append(host); boolean present_uptime_secs = true; builder.append(present_uptime_secs); if (present_uptime_secs) builder.append(uptime_secs); boolean present_num_workers = true; builder.append(present_num_workers); if (present_num_workers) builder.append(num_workers); boolean present_num_used_workers = true; builder.append(present_num_used_workers); if (present_num_used_workers) builder.append(num_used_workers); return builder.toHashCode(); }
List<Object> list = new ArrayList<Object>(); boolean present_host = true && (is_set_host()); list.add(present_host); if (present_host)
/** 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 HOST: return is_set_host(); case UPTIME_SECS: return is_set_uptime_secs(); case NUM_WORKERS: return is_set_num_workers(); case NUM_USED_WORKERS: return is_set_num_used_workers(); } throw new IllegalStateException(); }
SupervisorSummary typedOther = (SupervisorSummary)other; lastComparison = Boolean.valueOf(is_set_host()).compareTo(typedOther.is_set_host()); if (lastComparison != 0) { return lastComparison; if (is_set_host()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.host, typedOther.host); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(is_set_host()).compareTo(other.is_set_host()); if (lastComparison != 0) { return lastComparison; if (is_set_host()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.host, other.host); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public SupervisorSummary(SupervisorSummary other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_host()) { this.host = other.host; } if (other.is_set_supervisorId()) { this.supervisorId = other.supervisorId; } this.uptimeSecs = other.uptimeSecs; this.numWorkers = other.numWorkers; this.numUsedWorkers = other.numUsedWorkers; if (other.is_set_version()) { this.version = other.version; } if (other.is_set_buildTs()) { this.buildTs = other.buildTs; } this.port = other.port; if (other.is_set_errorMessage()) { this.errorMessage = other.errorMessage; } }
return false; boolean this_present_host = true && this.is_set_host(); boolean that_present_host = true && that.is_set_host(); if (this_present_host || that_present_host) { if (!(this_present_host && that_present_host))
/** 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 HOST: return is_set_host(); case SUPERVISOR_ID: return is_set_supervisorId(); case UPTIME_SECS: return is_set_uptimeSecs(); case NUM_WORKERS: return is_set_numWorkers(); case NUM_USED_WORKERS: return is_set_numUsedWorkers(); case VERSION: return is_set_version(); case BUILD_TS: return is_set_buildTs(); case PORT: return is_set_port(); case ERROR_MESSAGE: return is_set_errorMessage(); } throw new IllegalStateException(); }
public void validate() throws org.apache.thrift7.TException { // check for required fields if (!is_set_host()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'host' is unset! Struct:" + toString()); } if (!is_set_uptime_secs()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'uptime_secs' is unset! Struct:" + toString()); } if (!is_set_num_workers()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'num_workers' is unset! Struct:" + toString()); } if (!is_set_num_used_workers()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'num_used_workers' is unset! Struct:" + toString()); } }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_host()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'host' is unset! Struct:" + toString()); } if (!is_set_supervisorId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'supervisorId' is unset! Struct:" + toString()); } if (!is_set_uptimeSecs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'uptimeSecs' is unset! Struct:" + toString()); } if (!is_set_numWorkers()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numWorkers' is unset! Struct:" + toString()); } if (!is_set_numUsedWorkers()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numUsedWorkers' is unset! Struct:" + toString()); } // check for sub-struct validity }
/** * Performs a deep copy on <i>other</i>. */ public SupervisorSummary(SupervisorSummary other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); if (other.is_set_host()) { this.host = other.host; } this.uptime_secs = other.uptime_secs; this.num_workers = other.num_workers; this.num_used_workers = other.num_used_workers; if (other.is_set_supervisor_id()) { this.supervisor_id = other.supervisor_id; } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_host = true && (is_set_host()); builder.append(present_host); if (present_host) builder.append(host); boolean present_uptime_secs = true; builder.append(present_uptime_secs); if (present_uptime_secs) builder.append(uptime_secs); boolean present_num_workers = true; builder.append(present_num_workers); if (present_num_workers) builder.append(num_workers); boolean present_num_used_workers = true; builder.append(present_num_used_workers); if (present_num_used_workers) builder.append(num_used_workers); boolean present_supervisor_id = true && (is_set_supervisor_id()); builder.append(present_supervisor_id); if (present_supervisor_id) builder.append(supervisor_id); return builder.toHashCode(); }
List<Object> list = new ArrayList<Object>(); boolean present_host = true && (is_set_host()); list.add(present_host); if (present_host)
/** 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 HOST: return is_set_host(); case UPTIME_SECS: return is_set_uptime_secs(); case NUM_WORKERS: return is_set_num_workers(); case NUM_USED_WORKERS: return is_set_num_used_workers(); case SUPERVISOR_ID: return is_set_supervisor_id(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public SupervisorSummary(SupervisorSummary other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_host()) { this.host = other.host; } if (other.is_set_supervisorId()) { this.supervisorId = other.supervisorId; } this.uptimeSecs = other.uptimeSecs; this.numWorkers = other.numWorkers; this.numUsedWorkers = other.numUsedWorkers; if (other.is_set_version()) { this.version = other.version; } if (other.is_set_buildTs()) { this.buildTs = other.buildTs; } this.port = other.port; }
/** 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 HOST: return is_set_host(); case SUPERVISOR_ID: return is_set_supervisorId(); case UPTIME_SECS: return is_set_uptimeSecs(); case NUM_WORKERS: return is_set_numWorkers(); case NUM_USED_WORKERS: return is_set_numUsedWorkers(); case VERSION: return is_set_version(); case BUILD_TS: return is_set_buildTs(); case PORT: return is_set_port(); } throw new IllegalStateException(); }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_host()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'host' is unset! Struct:" + toString()); } if (!is_set_supervisorId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'supervisorId' is unset! Struct:" + toString()); } if (!is_set_uptimeSecs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'uptimeSecs' is unset! Struct:" + toString()); } if (!is_set_numWorkers()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numWorkers' is unset! Struct:" + toString()); } if (!is_set_numUsedWorkers()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numUsedWorkers' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_host()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'host' is unset! Struct:" + toString()); } if (!is_set_uptime_secs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'uptime_secs' is unset! Struct:" + toString()); } if (!is_set_num_workers()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'num_workers' is unset! Struct:" + toString()); } if (!is_set_num_used_workers()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'num_used_workers' is unset! Struct:" + toString()); } if (!is_set_supervisor_id()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'supervisor_id' is unset! Struct:" + toString()); } }