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

Method ReadField4

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

Source from the content-addressed store, hash-verified

2440}
2441
2442func (p *TSOpenSessionResp) ReadField4(ctx context.Context, iprot thrift.TProtocol) error {
2443 _, _, size, err := iprot.ReadMapBegin(ctx)
2444 if err != nil {
2445 return thrift.PrependError("error reading map begin: ", err)
2446 }
2447 tMap := make(map[string]string, size)
2448 p.Configuration = tMap
2449 for i := 0; i < size; i ++ {
2450var _key27 string
2451 if v, err := iprot.ReadString(ctx); err != nil {
2452 return thrift.PrependError("error reading field 0: ", err)
2453} else {
2454 _key27 = v
2455}
2456var _val28 string
2457 if v, err := iprot.ReadString(ctx); err != nil {
2458 return thrift.PrependError("error reading field 0: ", err)
2459} else {
2460 _val28 = v
2461}
2462 p.Configuration[_key27] = _val28
2463 }
2464 if err := iprot.ReadMapEnd(ctx); err != nil {
2465 return thrift.PrependError("error reading map end: ", err)
2466 }
2467 return nil
2468}
2469
2470func (p *TSOpenSessionResp) Write(ctx context.Context, oprot thrift.TProtocol) error {
2471 if err := oprot.WriteStructBegin(ctx, "TSOpenSessionResp"); err != nil {

Callers 1

ReadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected