/** 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 EXEC_SUMMARY: return is_set_exec_summary(); case STATS: return is_set_stats(); } throw new java.lang.IllegalStateException(); }
@Override public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder("ExecutorAggregateStats("); boolean first = true; if (is_set_exec_summary()) { sb.append("exec_summary:"); if (this.exec_summary == null) { sb.append("null"); } else { sb.append(this.exec_summary); } first = false; } if (is_set_stats()) { if (!first) sb.append(", "); sb.append("stats:"); if (this.stats == null) { sb.append("null"); } else { sb.append(this.stats); } first = false; } sb.append(")"); return sb.toString(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_exec_summary()) ? 131071 : 524287); if (is_set_exec_summary()) hashCode = hashCode * 8191 + exec_summary.hashCode(); hashCode = hashCode * 8191 + ((is_set_stats()) ? 131071 : 524287); if (is_set_stats()) hashCode = hashCode * 8191 + stats.hashCode(); return hashCode; }
@Override public int compareTo(ExecutorAggregateStats other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(is_set_exec_summary()).compareTo(other.is_set_exec_summary()); if (lastComparison != 0) { return lastComparison; } if (is_set_exec_summary()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.exec_summary, other.exec_summary); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(is_set_stats()).compareTo(other.is_set_stats()); if (lastComparison != 0) { return lastComparison; } if (is_set_stats()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.stats, other.stats); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.storm.thrift.protocol.TProtocol prot, ExecutorAggregateStats struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol oprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.is_set_exec_summary()) { optionals.set(0); } if (struct.is_set_stats()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.is_set_exec_summary()) { struct.exec_summary.write(oprot); } if (struct.is_set_stats()) { struct.stats.write(oprot); } }
/** * Performs a deep copy on <i>other</i>. */ public ExecutorAggregateStats(ExecutorAggregateStats other) { if (other.is_set_exec_summary()) { this.exec_summary = new ExecutorSummary(other.exec_summary); } if (other.is_set_stats()) { this.stats = new ComponentAggregateStats(other.stats); } }
public boolean equals(ExecutorAggregateStats that) { if (that == null) return false; if (this == that) return true; boolean this_present_exec_summary = true && this.is_set_exec_summary(); boolean that_present_exec_summary = true && that.is_set_exec_summary(); if (this_present_exec_summary || that_present_exec_summary) { if (!(this_present_exec_summary && that_present_exec_summary)) return false; if (!this.exec_summary.equals(that.exec_summary)) return false; } boolean this_present_stats = true && this.is_set_stats(); boolean that_present_stats = true && that.is_set_stats(); if (this_present_stats || that_present_stats) { if (!(this_present_stats && that_present_stats)) return false; if (!this.stats.equals(that.stats)) return false; } return true; }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, ExecutorAggregateStats struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.exec_summary != null) { if (struct.is_set_exec_summary()) { oprot.writeFieldBegin(EXEC_SUMMARY_FIELD_DESC); struct.exec_summary.write(oprot); oprot.writeFieldEnd(); } } if (struct.stats != null) { if (struct.is_set_stats()) { oprot.writeFieldBegin(STATS_FIELD_DESC); struct.stats.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** 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 EXEC_SUMMARY: return is_set_exec_summary(); case STATS: return is_set_stats(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_exec_summary = true && (is_set_exec_summary()); list.add(present_exec_summary); if (present_exec_summary) list.add(exec_summary); boolean present_stats = true && (is_set_stats()); list.add(present_stats); if (present_stats) list.add(stats); return list.hashCode(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("ExecutorAggregateStats("); boolean first = true; if (is_set_exec_summary()) { sb.append("exec_summary:"); if (this.exec_summary == null) { sb.append("null"); } else { sb.append(this.exec_summary); } first = false; } if (is_set_stats()) { if (!first) sb.append(", "); sb.append("stats:"); if (this.stats == null) { sb.append("null"); } else { sb.append(this.stats); } first = false; } sb.append(")"); return sb.toString(); }
@Override public int compareTo(ExecutorAggregateStats other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_exec_summary()).compareTo(other.is_set_exec_summary()); if (lastComparison != 0) { return lastComparison; } if (is_set_exec_summary()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exec_summary, other.exec_summary); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_stats()).compareTo(other.is_set_stats()); if (lastComparison != 0) { return lastComparison; } if (is_set_stats()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stats, other.stats); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ExecutorAggregateStats struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.is_set_exec_summary()) { optionals.set(0); } if (struct.is_set_stats()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.is_set_exec_summary()) { struct.exec_summary.write(oprot); } if (struct.is_set_stats()) { struct.stats.write(oprot); } }
public boolean equals(ExecutorAggregateStats that) { if (that == null) return false; boolean this_present_exec_summary = true && this.is_set_exec_summary(); boolean that_present_exec_summary = true && that.is_set_exec_summary(); if (this_present_exec_summary || that_present_exec_summary) { if (!(this_present_exec_summary && that_present_exec_summary)) return false; if (!this.exec_summary.equals(that.exec_summary)) return false; } boolean this_present_stats = true && this.is_set_stats(); boolean that_present_stats = true && that.is_set_stats(); if (this_present_stats || that_present_stats) { if (!(this_present_stats && that_present_stats)) return false; if (!this.stats.equals(that.stats)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public ExecutorAggregateStats(ExecutorAggregateStats other) { if (other.is_set_exec_summary()) { this.exec_summary = new ExecutorSummary(other.exec_summary); } if (other.is_set_stats()) { this.stats = new ComponentAggregateStats(other.stats); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, ExecutorAggregateStats struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.exec_summary != null) { if (struct.is_set_exec_summary()) { oprot.writeFieldBegin(EXEC_SUMMARY_FIELD_DESC); struct.exec_summary.write(oprot); oprot.writeFieldEnd(); } } if (struct.stats != null) { if (struct.is_set_stats()) { oprot.writeFieldBegin(STATS_FIELD_DESC); struct.stats.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }