public void Write(TProtocol oprot) { TStruct struc = new TStruct("ColumnStatisticsData"); oprot.WriteStructBegin(struc); TField field = new TField(); if (BooleanStats != null && __isset.booleanStats) { field.Name = "booleanStats"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); BooleanStats.Write(oprot); oprot.WriteFieldEnd(); } if (LongStats != null && __isset.longStats) { field.Name = "longStats"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); LongStats.Write(oprot); oprot.WriteFieldEnd(); } if (DoubleStats != null && __isset.doubleStats) { field.Name = "doubleStats"; field.Type = TType.Struct; field.ID = 3; oprot.WriteFieldBegin(field); DoubleStats.Write(oprot); oprot.WriteFieldEnd(); } if (StringStats != null && __isset.stringStats) { field.Name = "stringStats"; field.Type = TType.Struct; field.ID = 4; oprot.WriteFieldBegin(field); StringStats.Write(oprot); oprot.WriteFieldEnd(); } if (BinaryStats != null && __isset.binaryStats) { field.Name = "binaryStats"; field.Type = TType.Struct; field.ID = 5; oprot.WriteFieldBegin(field); BinaryStats.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
public override string ToString() { StringBuilder sb = new StringBuilder("ColumnStatisticsData("); sb.Append("BooleanStats: "); sb.Append(BooleanStats == null ? "<null>" : BooleanStats.ToString()); sb.Append(",LongStats: "); sb.Append(LongStats == null ? "<null>" : LongStats.ToString()); sb.Append(",DoubleStats: "); sb.Append(DoubleStats == null ? "<null>" : DoubleStats.ToString()); sb.Append(",StringStats: "); sb.Append(StringStats == null ? "<null>" : StringStats.ToString()); sb.Append(",BinaryStats: "); sb.Append(BinaryStats == null ? "<null>" : BinaryStats.ToString()); sb.Append(")"); return(sb.ToString()); }