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

Method writeField3

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

Source from the content-addressed store, hash-verified

17472}
17473
17474func (p *TSQueryTemplateResp) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) {
17475 if p.IsSetResult_() {
17476 if err := oprot.WriteFieldBegin(ctx, "result", thrift.BOOL, 3); err != nil {
17477 return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:result: ", p), err) }
17478 if err := oprot.WriteBool(ctx, bool(*p.Result_)); err != nil {
17479 return thrift.PrependError(fmt.Sprintf("%T.result (3) field write error: ", p), err) }
17480 if err := oprot.WriteFieldEnd(ctx); err != nil {
17481 return thrift.PrependError(fmt.Sprintf("%T write field end error 3:result: ", p), err) }
17482 }
17483 return err
17484}
17485
17486func (p *TSQueryTemplateResp) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) {
17487 if p.IsSetCount() {

Callers 1

WriteMethod · 0.95

Calls 1

IsSetResult_Method · 0.95

Tested by

no test coverage detected