public void Write(TProtocol oprot) { TStruct struc = new TStruct("ExecutorAggregateStats"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Exec_summary != null && __isset.exec_summary) { field.Name = "exec_summary"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); Exec_summary.Write(oprot); oprot.WriteFieldEnd(); } if (Stats != null && __isset.stats) { field.Name = "stats"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); Stats.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public override string ToString() { StringBuilder sb = new StringBuilder("ExecutorAggregateStats("); sb.Append("Exec_summary: "); sb.Append(Exec_summary == null ? "<null>" : Exec_summary.ToString()); sb.Append(",Stats: "); sb.Append(Stats == null ? "<null>" : Stats.ToString()); sb.Append(")"); return(sb.ToString()); }