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

Method writeField3

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

Source from the content-addressed store, hash-verified

1950}
1951
1952func (p *TSExecuteStatementResp) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) {
1953 if p.IsSetColumns() {
1954 if err := oprot.WriteFieldBegin(ctx, "columns", thrift.LIST, 3); err != nil {
1955 return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:columns: ", p), err) }
1956 if err := oprot.WriteListBegin(ctx, thrift.STRING, len(p.Columns)); err != nil {
1957 return thrift.PrependError("error writing list begin: ", err)
1958 }
1959 for _, v := range p.Columns {
1960 if err := oprot.WriteString(ctx, string(v)); err != nil {
1961 return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) }
1962 }
1963 if err := oprot.WriteListEnd(ctx); err != nil {
1964 return thrift.PrependError("error writing list end: ", err)
1965 }
1966 if err := oprot.WriteFieldEnd(ctx); err != nil {
1967 return thrift.PrependError(fmt.Sprintf("%T write field end error 3:columns: ", p), err) }
1968 }
1969 return err
1970}
1971
1972func (p *TSExecuteStatementResp) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) {
1973 if p.IsSetOperationType() {

Callers 1

WriteMethod · 0.95

Calls 1

IsSetColumnsMethod · 0.95

Tested by

no test coverage detected