MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / writeField3

Method writeField3

common/common.go:1035–1054  ·  view source on GitHub ↗
(ctx context.Context, oprot thrift.TProtocol)

Source from the content-addressed store, hash-verified

1033}
1034
1035func (p *TSStatus) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) {
1036 if p.IsSetSubStatus() {
1037 if err := oprot.WriteFieldBegin(ctx, "subStatus", thrift.LIST, 3); err != nil {
1038 return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:subStatus: ", p), err) }
1039 if err := oprot.WriteListBegin(ctx, thrift.STRUCT, len(p.SubStatus)); err != nil {
1040 return thrift.PrependError("error writing list begin: ", err)
1041 }
1042 for _, v := range p.SubStatus {
1043 if err := v.Write(ctx, oprot); err != nil {
1044 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err)
1045 }
1046 }
1047 if err := oprot.WriteListEnd(ctx); err != nil {
1048 return thrift.PrependError("error writing list end: ", err)
1049 }
1050 if err := oprot.WriteFieldEnd(ctx); err != nil {
1051 return thrift.PrependError(fmt.Sprintf("%T write field end error 3:subStatus: ", p), err) }
1052 }
1053 return err
1054}
1055
1056func (p *TSStatus) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) {
1057 if p.IsSetRedirectNode() {

Callers 1

WriteMethod · 0.95

Calls 2

IsSetSubStatusMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected