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

Method ReadField5

rpc/client.go:17414–17434  ·  view source on GitHub ↗
(ctx context.Context, iprot thrift.TProtocol)

Source from the content-addressed store, hash-verified

17412}
17413
17414func (p *TSQueryTemplateResp) ReadField5(ctx context.Context, iprot thrift.TProtocol) error {
17415 _, size, err := iprot.ReadListBegin(ctx)
17416 if err != nil {
17417 return thrift.PrependError("error reading list begin: ", err)
17418 }
17419 tSlice := make([]string, 0, size)
17420 p.Measurements = tSlice
17421 for i := 0; i < size; i ++ {
17422var _elem189 string
17423 if v, err := iprot.ReadString(ctx); err != nil {
17424 return thrift.PrependError("error reading field 0: ", err)
17425} else {
17426 _elem189 = v
17427}
17428 p.Measurements = append(p.Measurements, _elem189)
17429 }
17430 if err := iprot.ReadListEnd(ctx); err != nil {
17431 return thrift.PrependError("error reading list end: ", err)
17432 }
17433 return nil
17434}
17435
17436func (p *TSQueryTemplateResp) Write(ctx context.Context, oprot thrift.TProtocol) error {
17437 if err := oprot.WriteStructBegin(ctx, "TSQueryTemplateResp"); err != nil {

Callers 1

ReadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected