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

Method writeField2

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

Source from the content-addressed store, hash-verified

17462}
17463
17464func (p *TSQueryTemplateResp) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
17465 if err := oprot.WriteFieldBegin(ctx, "queryType", thrift.I32, 2); err != nil {
17466 return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:queryType: ", p), err) }
17467 if err := oprot.WriteI32(ctx, int32(p.QueryType)); err != nil {
17468 return thrift.PrependError(fmt.Sprintf("%T.queryType (2) field write error: ", p), err) }
17469 if err := oprot.WriteFieldEnd(ctx); err != nil {
17470 return thrift.PrependError(fmt.Sprintf("%T write field end error 2:queryType: ", p), err) }
17471 return err
17472}
17473
17474func (p *TSQueryTemplateResp) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) {
17475 if p.IsSetResult_() {

Callers 1

WriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected