list.add(id); boolean present_name = true && (is_set_name()); list.add(present_name); if (present_name)
/** * Performs a deep copy on <i>other</i>. */ public TopologySummary(TopologySummary other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); if (other.is_set_id()) { this.id = other.id; } if (other.is_set_name()) { this.name = other.name; } this.num_tasks = other.num_tasks; this.num_workers = other.num_workers; this.uptime_secs = other.uptime_secs; if (other.is_set_status()) { this.status = other.status; } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_id = true && (is_set_id()); builder.append(present_id); if (present_id) builder.append(id); boolean present_name = true && (is_set_name()); builder.append(present_name); if (present_name) builder.append(name); boolean present_num_tasks = true; builder.append(present_num_tasks); if (present_num_tasks) builder.append(num_tasks); boolean present_num_workers = true; builder.append(present_num_workers); if (present_num_workers) builder.append(num_workers); boolean present_uptime_secs = true; builder.append(present_uptime_secs); if (present_uptime_secs) builder.append(uptime_secs); boolean present_status = true && (is_set_status()); builder.append(present_status); if (present_status) builder.append(status); return builder.toHashCode(); }
boolean this_present_name = true && this.is_set_name(); boolean that_present_name = true && that.is_set_name(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name))
/** * Performs a deep copy on <i>other</i>. */ public TopologySummary(TopologySummary other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_id()) { this.id = other.id; } if (other.is_set_name()) { this.name = other.name; } if (other.is_set_status()) { this.status = other.status; } this.uptimeSecs = other.uptimeSecs; this.numTasks = other.numTasks; this.numWorkers = other.numWorkers; if (other.is_set_errorInfo()) { this.errorInfo = other.errorInfo; } }
boolean this_present_name = true && this.is_set_name(); boolean that_present_name = true && that.is_set_name(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name))
lastComparison = Boolean.valueOf(is_set_name()).compareTo(other.is_set_name()); if (lastComparison != 0) { return lastComparison; if (is_set_name()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, other.name); if (lastComparison != 0) {
/** 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 ID: return is_set_id(); case NAME: return is_set_name(); case STATUS: return is_set_status(); case UPTIME_SECS: return is_set_uptimeSecs(); case NUM_TASKS: return is_set_numTasks(); case NUM_WORKERS: return is_set_numWorkers(); case ERROR_INFO: return is_set_errorInfo(); } throw new IllegalStateException(); }
/** 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 ID: return is_set_id(); case NAME: return is_set_name(); case NUM_TASKS: return is_set_num_tasks(); case NUM_WORKERS: return is_set_num_workers(); case UPTIME_SECS: return is_set_uptime_secs(); case STATUS: return is_set_status(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(is_set_name()).compareTo(typedOther.is_set_name()); if (lastComparison != 0) { return lastComparison; if (is_set_name()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.name, typedOther.name); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_id()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'id' is unset! Struct:" + toString()); } if (!is_set_name()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString()); } if (!is_set_status()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' 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_numTasks()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numTasks' is unset! Struct:" + toString()); } if (!is_set_numWorkers()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numWorkers' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift7.TException { // check for required fields if (!is_set_id()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'id' is unset! Struct:" + toString()); } if (!is_set_name()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString()); } if (!is_set_num_tasks()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'num_tasks' 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_uptime_secs()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'uptime_secs' is unset! Struct:" + toString()); } if (!is_set_status()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'status' is unset! Struct:" + toString()); } }
builder.append(id); boolean present_name = true && (is_set_name()); builder.append(present_name); if (present_name)
/** * Performs a deep copy on <i>other</i>. */ public TopologySummary(TopologySummary other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); if (other.is_set_id()) { this.id = other.id; } if (other.is_set_name()) { this.name = other.name; } this.num_tasks = other.num_tasks; this.num_executors = other.num_executors; this.num_workers = other.num_workers; this.uptime_secs = other.uptime_secs; if (other.is_set_status()) { this.status = other.status; } }
list.add(id); boolean present_name = true && (is_set_name()); list.add(present_name); if (present_name)
/** * Performs a deep copy on <i>other</i>. */ public TopologySummary(TopologySummary other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_id()) { this.id = other.id; } if (other.is_set_name()) { this.name = other.name; } if (other.is_set_status()) { this.status = other.status; } this.uptimeSecs = other.uptimeSecs; this.numTasks = other.numTasks; this.numWorkers = other.numWorkers; if (other.is_set_errorInfo()) { this.errorInfo = other.errorInfo; } }
/** 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 ID: return is_set_id(); case NAME: return is_set_name(); case STATUS: return is_set_status(); case UPTIME_SECS: return is_set_uptimeSecs(); case NUM_TASKS: return is_set_numTasks(); case NUM_WORKERS: return is_set_numWorkers(); case ERROR_INFO: return is_set_errorInfo(); } throw new IllegalStateException(); }
/** 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 ID: return is_set_id(); case NAME: return is_set_name(); case NUM_TASKS: return is_set_num_tasks(); case NUM_EXECUTORS: return is_set_num_executors(); case NUM_WORKERS: return is_set_num_workers(); case UPTIME_SECS: return is_set_uptime_secs(); case STATUS: return is_set_status(); } throw new IllegalStateException(); }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_id()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'id' is unset! Struct:" + toString()); } if (!is_set_name()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString()); } if (!is_set_status()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' 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_numTasks()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numTasks' is unset! Struct:" + toString()); } if (!is_set_numWorkers()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'numWorkers' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_id()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'id' is unset! Struct:" + toString()); } if (!is_set_name()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString()); } if (!is_set_num_tasks()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'num_tasks' is unset! Struct:" + toString()); } if (!is_set_num_executors()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'num_executors' 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_uptime_secs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'uptime_secs' is unset! Struct:" + toString()); } if (!is_set_status()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' is unset! Struct:" + toString()); } }