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

Method writeField10

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

Source from the content-addressed store, hash-verified

2062}
2063
2064func (p *TSExecuteStatementResp) writeField10(ctx context.Context, oprot thrift.TProtocol) (err error) {
2065 if p.IsSetSgColumns() {
2066 if err := oprot.WriteFieldBegin(ctx, "sgColumns", thrift.LIST, 10); err != nil {
2067 return thrift.PrependError(fmt.Sprintf("%T write field begin error 10:sgColumns: ", p), err) }
2068 if err := oprot.WriteListBegin(ctx, thrift.STRING, len(p.SgColumns)); err != nil {
2069 return thrift.PrependError("error writing list begin: ", err)
2070 }
2071 for _, v := range p.SgColumns {
2072 if err := oprot.WriteString(ctx, string(v)); err != nil {
2073 return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) }
2074 }
2075 if err := oprot.WriteListEnd(ctx); err != nil {
2076 return thrift.PrependError("error writing list end: ", err)
2077 }
2078 if err := oprot.WriteFieldEnd(ctx); err != nil {
2079 return thrift.PrependError(fmt.Sprintf("%T write field end error 10:sgColumns: ", p), err) }
2080 }
2081 return err
2082}
2083
2084func (p *TSExecuteStatementResp) writeField11(ctx context.Context, oprot thrift.TProtocol) (err error) {
2085 if p.IsSetAliasColumns() {

Callers 1

WriteMethod · 0.95

Calls 1

IsSetSgColumnsMethod · 0.95

Tested by

no test coverage detected