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

Method Write

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

Source from the content-addressed store, hash-verified

4411}
4412
4413func (p *TSPrepareResp) Write(ctx context.Context, oprot thrift.TProtocol) error {
4414 if err := oprot.WriteStructBegin(ctx, "TSPrepareResp"); err != nil {
4415 return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) }
4416 if p != nil {
4417 if err := p.writeField1(ctx, oprot); err != nil { return err }
4418 if err := p.writeField2(ctx, oprot); err != nil { return err }
4419 }
4420 if err := oprot.WriteFieldStop(ctx); err != nil {
4421 return thrift.PrependError("write field stop error: ", err) }
4422 if err := oprot.WriteStructEnd(ctx); err != nil {
4423 return thrift.PrependError("write struct stop error: ", err) }
4424 return nil
4425}
4426
4427func (p *TSPrepareResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) {
4428 if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil {

Callers

nothing calls this directly

Calls 2

writeField1Method · 0.95
writeField2Method · 0.95

Tested by

no test coverage detected