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

Method writeField3

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

Source from the content-addressed store, hash-verified

2505}
2506
2507func (p *TSOpenSessionResp) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) {
2508 if p.IsSetSessionId() {
2509 if err := oprot.WriteFieldBegin(ctx, "sessionId", thrift.I64, 3); err != nil {
2510 return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:sessionId: ", p), err) }
2511 if err := oprot.WriteI64(ctx, int64(*p.SessionId)); err != nil {
2512 return thrift.PrependError(fmt.Sprintf("%T.sessionId (3) field write error: ", p), err) }
2513 if err := oprot.WriteFieldEnd(ctx); err != nil {
2514 return thrift.PrependError(fmt.Sprintf("%T write field end error 3:sessionId: ", p), err) }
2515 }
2516 return err
2517}
2518
2519func (p *TSOpenSessionResp) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) {
2520 if p.IsSetConfiguration() {

Callers 1

WriteMethod · 0.95

Calls 1

IsSetSessionIdMethod · 0.95

Tested by

no test coverage detected