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

Method writeField4

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

Source from the content-addressed store, hash-verified

17484}
17485
17486func (p *TSQueryTemplateResp) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) {
17487 if p.IsSetCount() {
17488 if err := oprot.WriteFieldBegin(ctx, "count", thrift.I32, 4); err != nil {
17489 return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:count: ", p), err) }
17490 if err := oprot.WriteI32(ctx, int32(*p.Count)); err != nil {
17491 return thrift.PrependError(fmt.Sprintf("%T.count (4) field write error: ", p), err) }
17492 if err := oprot.WriteFieldEnd(ctx); err != nil {
17493 return thrift.PrependError(fmt.Sprintf("%T write field end error 4:count: ", p), err) }
17494 }
17495 return err
17496}
17497
17498func (p *TSQueryTemplateResp) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) {
17499 if p.IsSetMeasurements() {

Callers 1

WriteMethod · 0.95

Calls 1

IsSetCountMethod · 0.95

Tested by

no test coverage detected