public override string ToString()
{
StringBuilder sb = new StringBuilder("Query(");
sb.Append("QueryId: ");
sb.Append(QueryId);
sb.Append(",QueryType: ");
sb.Append(QueryType);
sb.Append(",QueryAttributes: ");
sb.Append(QueryAttributes);
sb.Append(",QueryCounters: ");
sb.Append(QueryCounters);
sb.Append(",StageGraph: ");
sb.Append(StageGraph== null ? "<null>" : StageGraph.ToString());
sb.Append(",StageList: ");
sb.Append(StageList);
sb.Append(",Done: ");
sb.Append(Done);
sb.Append(",Started: ");
sb.Append(Started);
sb.Append(")");
return sb.ToString();
}