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

Method writeField0

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

Source from the content-addressed store, hash-verified

28474}
28475
28476func (p *IClientRPCServiceFetchResultsV2Result) writeField0(ctx context.Context, oprot thrift.TProtocol) (err error) {
28477 if p.IsSetSuccess() {
28478 if err := oprot.WriteFieldBegin(ctx, "success", thrift.STRUCT, 0); err != nil {
28479 return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) }
28480 if err := p.Success.Write(ctx, oprot); err != nil {
28481 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
28482 }
28483 if err := oprot.WriteFieldEnd(ctx); err != nil {
28484 return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) }
28485 }
28486 return err
28487}
28488
28489func (p *IClientRPCServiceFetchResultsV2Result) String() string {
28490 if p == nil {

Callers 1

WriteMethod · 0.95

Calls 2

IsSetSuccessMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected