/** 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 TYPE: return is_set_type(); case COMMON_STATS: return is_set_common_stats(); case SPECIFIC_STATS: return is_set_specific_stats(); case LAST_ERROR: return is_set_last_error(); } throw new java.lang.IllegalStateException(); }
if (is_set_specific_stats()) { if (!first) sb.append(", "); sb.append("specific_stats:");
lastComparison = java.lang.Boolean.valueOf(is_set_specific_stats()).compareTo(other.is_set_specific_stats()); if (lastComparison != 0) { return lastComparison; if (is_set_specific_stats()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.specific_stats, other.specific_stats); if (lastComparison != 0) {
@Override public void write(org.apache.storm.thrift.protocol.TProtocol prot, ComponentAggregateStats 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_type()) { optionals.set(0); } if (struct.is_set_common_stats()) { optionals.set(1); } if (struct.is_set_specific_stats()) { optionals.set(2); } if (struct.is_set_last_error()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.is_set_type()) { oprot.writeI32(struct.type.getValue()); } if (struct.is_set_common_stats()) { struct.common_stats.write(oprot); } if (struct.is_set_specific_stats()) { struct.specific_stats.write(oprot); } if (struct.is_set_last_error()) { struct.last_error.write(oprot); } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_type()) ? 131071 : 524287); if (is_set_type()) hashCode = hashCode * 8191 + type.getValue(); hashCode = hashCode * 8191 + ((is_set_common_stats()) ? 131071 : 524287); if (is_set_common_stats()) hashCode = hashCode * 8191 + common_stats.hashCode(); hashCode = hashCode * 8191 + ((is_set_specific_stats()) ? 131071 : 524287); if (is_set_specific_stats()) hashCode = hashCode * 8191 + specific_stats.hashCode(); hashCode = hashCode * 8191 + ((is_set_last_error()) ? 131071 : 524287); if (is_set_last_error()) hashCode = hashCode * 8191 + last_error.hashCode(); return hashCode; }
/** * Performs a deep copy on <i>other</i>. */ public ComponentAggregateStats(ComponentAggregateStats other) { if (other.is_set_type()) { this.type = other.type; } if (other.is_set_common_stats()) { this.common_stats = new CommonAggregateStats(other.common_stats); } if (other.is_set_specific_stats()) { this.specific_stats = new SpecificAggregateStats(other.specific_stats); } if (other.is_set_last_error()) { this.last_error = new ErrorInfo(other.last_error); } }
boolean this_present_specific_stats = true && this.is_set_specific_stats(); boolean that_present_specific_stats = true && that.is_set_specific_stats(); if (this_present_specific_stats || that_present_specific_stats) { if (!(this_present_specific_stats && that_present_specific_stats))
if (struct.is_set_specific_stats()) { oprot.writeFieldBegin(SPECIFIC_STATS_FIELD_DESC); struct.specific_stats.write(oprot);
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_type = true && (is_set_type()); list.add(present_type); if (present_type) list.add(type.getValue()); boolean present_common_stats = true && (is_set_common_stats()); list.add(present_common_stats); if (present_common_stats) list.add(common_stats); boolean present_specific_stats = true && (is_set_specific_stats()); list.add(present_specific_stats); if (present_specific_stats) list.add(specific_stats); boolean present_last_error = true && (is_set_last_error()); list.add(present_last_error); if (present_last_error) list.add(last_error); 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 TYPE: return is_set_type(); case COMMON_STATS: return is_set_common_stats(); case SPECIFIC_STATS: return is_set_specific_stats(); case LAST_ERROR: return is_set_last_error(); } throw new IllegalStateException(); }
if (is_set_specific_stats()) { if (!first) sb.append(", "); sb.append("specific_stats:");
lastComparison = Boolean.valueOf(is_set_specific_stats()).compareTo(other.is_set_specific_stats()); if (lastComparison != 0) { return lastComparison; if (is_set_specific_stats()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.specific_stats, other.specific_stats); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, ComponentAggregateStats struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.is_set_type()) { optionals.set(0); } if (struct.is_set_common_stats()) { optionals.set(1); } if (struct.is_set_specific_stats()) { optionals.set(2); } if (struct.is_set_last_error()) { optionals.set(3); } oprot.writeBitSet(optionals, 4); if (struct.is_set_type()) { oprot.writeI32(struct.type.getValue()); } if (struct.is_set_common_stats()) { struct.common_stats.write(oprot); } if (struct.is_set_specific_stats()) { struct.specific_stats.write(oprot); } if (struct.is_set_last_error()) { struct.last_error.write(oprot); } }
/** * Performs a deep copy on <i>other</i>. */ public ComponentAggregateStats(ComponentAggregateStats other) { if (other.is_set_type()) { this.type = other.type; } if (other.is_set_common_stats()) { this.common_stats = new CommonAggregateStats(other.common_stats); } if (other.is_set_specific_stats()) { this.specific_stats = new SpecificAggregateStats(other.specific_stats); } if (other.is_set_last_error()) { this.last_error = new ErrorInfo(other.last_error); } }
boolean this_present_specific_stats = true && this.is_set_specific_stats(); boolean that_present_specific_stats = true && that.is_set_specific_stats(); if (this_present_specific_stats || that_present_specific_stats) { if (!(this_present_specific_stats && that_present_specific_stats))
if (struct.is_set_specific_stats()) { oprot.writeFieldBegin(SPECIFIC_STATS_FIELD_DESC); struct.specific_stats.write(oprot);