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

Method writeField0

rpc/client.go:33109–33120  ·  view source on GitHub ↗
(ctx context.Context, oprot thrift.TProtocol)

Source from the content-addressed store, hash-verified

33107}
33108
33109func (p *IClientRPCServiceInsertRecordResult) writeField0(ctx context.Context, oprot thrift.TProtocol) (err error) {
33110 if p.IsSetSuccess() {
33111 if err := oprot.WriteFieldBegin(ctx, "success", thrift.STRUCT, 0); err != nil {
33112 return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) }
33113 if err := p.Success.Write(ctx, oprot); err != nil {
33114 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
33115 }
33116 if err := oprot.WriteFieldEnd(ctx); err != nil {
33117 return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) }
33118 }
33119 return err
33120}
33121
33122func (p *IClientRPCServiceInsertRecordResult) String() string {
33123 if p == nil {

Callers 1

WriteMethod · 0.95

Calls 2

IsSetSuccessMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected