MCPcopy Index your code
hub / github.com/apache/iotdb-client-go / writeField4

Method writeField4

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

Source from the content-addressed store, hash-verified

1054}
1055
1056func (p *TSStatus) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) {
1057 if p.IsSetRedirectNode() {
1058 if err := oprot.WriteFieldBegin(ctx, "redirectNode", thrift.STRUCT, 4); err != nil {
1059 return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:redirectNode: ", p), err) }
1060 if err := p.RedirectNode.Write(ctx, oprot); err != nil {
1061 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.RedirectNode), err)
1062 }
1063 if err := oprot.WriteFieldEnd(ctx); err != nil {
1064 return thrift.PrependError(fmt.Sprintf("%T write field end error 4:redirectNode: ", p), err) }
1065 }
1066 return err
1067}
1068
1069func (p *TSStatus) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) {
1070 if p.IsSetNeedRetry() {

Callers 1

WriteMethod · 0.95

Calls 2

IsSetRedirectNodeMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected