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

Method writeField5

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

Source from the content-addressed store, hash-verified

1067}
1068
1069func (p *TSStatus) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) {
1070 if p.IsSetNeedRetry() {
1071 if err := oprot.WriteFieldBegin(ctx, "needRetry", thrift.BOOL, 5); err != nil {
1072 return thrift.PrependError(fmt.Sprintf("%T write field begin error 5:needRetry: ", p), err) }
1073 if err := oprot.WriteBool(ctx, bool(*p.NeedRetry)); err != nil {
1074 return thrift.PrependError(fmt.Sprintf("%T.needRetry (5) field write error: ", p), err) }
1075 if err := oprot.WriteFieldEnd(ctx); err != nil {
1076 return thrift.PrependError(fmt.Sprintf("%T write field end error 5:needRetry: ", p), err) }
1077 }
1078 return err
1079}
1080
1081func (p *TSStatus) Equals(other *TSStatus) bool {
1082 if p == other {

Callers 1

WriteMethod · 0.95

Calls 1

IsSetNeedRetryMethod · 0.95

Tested by

no test coverage detected