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

Method writeField2

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

Source from the content-addressed store, hash-verified

1938}
1939
1940func (p *TSExecuteStatementResp) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
1941 if p.IsSetQueryId() {
1942 if err := oprot.WriteFieldBegin(ctx, "queryId", thrift.I64, 2); err != nil {
1943 return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:queryId: ", p), err) }
1944 if err := oprot.WriteI64(ctx, int64(*p.QueryId)); err != nil {
1945 return thrift.PrependError(fmt.Sprintf("%T.queryId (2) field write error: ", p), err) }
1946 if err := oprot.WriteFieldEnd(ctx); err != nil {
1947 return thrift.PrependError(fmt.Sprintf("%T write field end error 2:queryId: ", p), err) }
1948 }
1949 return err
1950}
1951
1952func (p *TSExecuteStatementResp) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) {
1953 if p.IsSetColumns() {

Callers 1

WriteMethod · 0.95

Calls 1

IsSetQueryIdMethod · 0.95

Tested by

no test coverage detected