/** * Performs a deep copy on <i>other</i>. */ public DomainStatisticsSummary(DomainStatisticsSummary other) { __isset_bitfield = other.__isset_bitfield; this.id = other.id; this.throughput_total = other.throughput_total; this.response_data_throughput_total = other.response_data_throughput_total; this.num_requests_total = other.num_requests_total; this.num_hits_total = other.num_hits_total; this.num_l1_cache_hits_total = other.num_l1_cache_hits_total; this.num_l2_cache_hits_total = other.num_l2_cache_hits_total; this.cache_num_items = other.cache_num_items; this.cache_max_num_items = other.cache_max_num_items; this.cache_num_managed_bytes = other.cache_num_managed_bytes; this.cache_max_num_managed_bytes = other.cache_max_num_managed_bytes; if (other.is_set_latency_summary()) { this.latency_summary = new LatencySampleSummary(other.latency_summary); } }
boolean this_present_latency_summary = true && this.is_set_latency_summary(); boolean that_present_latency_summary = true && that.is_set_latency_summary(); if (this_present_latency_summary || that_present_latency_summary) { if (!(this_present_latency_summary && that_present_latency_summary))
builder.append(cache_max_num_managed_bytes); boolean present_latency_summary = true && (is_set_latency_summary()); builder.append(present_latency_summary); if (present_latency_summary)
sb.append(this.cache_max_num_managed_bytes); first = false; if (is_set_latency_summary()) { if (!first) sb.append(", "); sb.append("latency_summary:");
oprot.writeFieldEnd(); if (struct.latency_summary != null) { if (struct.is_set_latency_summary()) { oprot.writeFieldBegin(LATENCY_SUMMARY_FIELD_DESC); struct.latency_summary.write(oprot);
lastComparison = Boolean.valueOf(is_set_latency_summary()).compareTo(typedOther.is_set_latency_summary()); if (lastComparison != 0) { return lastComparison; if (is_set_latency_summary()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.latency_summary, typedOther.latency_summary); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DomainStatisticsSummary struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.id); oprot.writeDouble(struct.throughput_total); oprot.writeDouble(struct.response_data_throughput_total); oprot.writeI64(struct.num_requests_total); oprot.writeI64(struct.num_hits_total); oprot.writeI64(struct.num_l1_cache_hits_total); oprot.writeI64(struct.num_l2_cache_hits_total); oprot.writeI64(struct.cache_num_items); oprot.writeI64(struct.cache_max_num_items); oprot.writeI64(struct.cache_num_managed_bytes); oprot.writeI64(struct.cache_max_num_managed_bytes); BitSet optionals = new BitSet(); if (struct.is_set_latency_summary()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.is_set_latency_summary()) { struct.latency_summary.write(oprot); } }
return is_set_cache_max_num_managed_bytes(); case LATENCY_SUMMARY: return is_set_latency_summary();