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

Method writeField4

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

Source from the content-addressed store, hash-verified

1970}
1971
1972func (p *TSExecuteStatementResp) writeField4(ctx context.Context, oprot thrift.TProtocol) (err error) {
1973 if p.IsSetOperationType() {
1974 if err := oprot.WriteFieldBegin(ctx, "operationType", thrift.STRING, 4); err != nil {
1975 return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:operationType: ", p), err) }
1976 if err := oprot.WriteString(ctx, string(*p.OperationType)); err != nil {
1977 return thrift.PrependError(fmt.Sprintf("%T.operationType (4) field write error: ", p), err) }
1978 if err := oprot.WriteFieldEnd(ctx); err != nil {
1979 return thrift.PrependError(fmt.Sprintf("%T write field end error 4:operationType: ", p), err) }
1980 }
1981 return err
1982}
1983
1984func (p *TSExecuteStatementResp) writeField5(ctx context.Context, oprot thrift.TProtocol) (err error) {
1985 if p.IsSetIgnoreTimeStamp() {

Callers 1

WriteMethod · 0.95

Calls 1

IsSetOperationTypeMethod · 0.95

Tested by

no test coverage detected