write method

void write(
  1. TProtocol oprot
)
override

Writes the objects out to the oprot protocol.

Implementation

write(TProtocol oprot) {
  validate();

  oprot.writeStructBegin(_STRUCT_DESC);
  oprot.writeFieldBegin(_ROWS_FIELD_DESC);
  oprot.writeI64(this.rows);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_EXEC_DURATION_IN_US_FIELD_DESC);
  oprot.writeI64(this.exec_duration_in_us);
  oprot.writeFieldEnd();
  oprot.writeFieldBegin(_TOTAL_DURATION_IN_US_FIELD_DESC);
  oprot.writeI64(this.total_duration_in_us);
  oprot.writeFieldEnd();
  if (isSetOther_stats()) {
    if (this.other_stats != null) {
      oprot.writeFieldBegin(_OTHER_STATS_FIELD_DESC);
      {
        oprot.writeMapBegin(
            new TMap(TType.STRING, TType.STRING, this.other_stats?.length));
        for (var elem5 in this.other_stats?.keys ?? <Int8List>[]) {
          oprot.writeBinary(elem5);
          oprot.writeBinary(this.other_stats?[elem5]);
        }
        oprot.writeMapEnd();
      }
      oprot.writeFieldEnd();
    }
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}