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

Method writeField0

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

Source from the content-addressed store, hash-verified

33899}
33900
33901func (p *IClientRPCServiceInsertRecordsResult) writeField0(ctx context.Context, oprot thrift.TProtocol) (err error) {
33902 if p.IsSetSuccess() {
33903 if err := oprot.WriteFieldBegin(ctx, "success", thrift.STRUCT, 0); err != nil {
33904 return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) }
33905 if err := p.Success.Write(ctx, oprot); err != nil {
33906 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
33907 }
33908 if err := oprot.WriteFieldEnd(ctx); err != nil {
33909 return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) }
33910 }
33911 return err
33912}
33913
33914func (p *IClientRPCServiceInsertRecordsResult) String() string {
33915 if p == nil {

Callers 1

WriteMethod · 0.95

Calls 2

IsSetSuccessMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected