MCPcopy Index your code
hub / github.com/apache/iotdb-client-go / Write

Method Write

common/common.go:3994–4006  ·  view source on GitHub ↗
(ctx context.Context, oprot thrift.TProtocol)

Source from the content-addressed store, hash-verified

3992}
3993
3994func (p *TFile) Write(ctx context.Context, oprot thrift.TProtocol) error {
3995 if err := oprot.WriteStructBegin(ctx, "TFile"); err != nil {
3996 return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) }
3997 if p != nil {
3998 if err := p.writeField1(ctx, oprot); err != nil { return err }
3999 if err := p.writeField2(ctx, oprot); err != nil { return err }
4000 }
4001 if err := oprot.WriteFieldStop(ctx); err != nil {
4002 return thrift.PrependError("write field stop error: ", err) }
4003 if err := oprot.WriteStructEnd(ctx); err != nil {
4004 return thrift.PrependError("write struct stop error: ", err) }
4005 return nil
4006}
4007
4008func (p *TFile) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) {
4009 if err := oprot.WriteFieldBegin(ctx, "fileName", thrift.STRING, 1); err != nil {

Callers 15

int32ToBytesFunction · 0.45
int64ToBytesFunction · 0.45
valuesToBytesFunction · 0.45
buildNullIndicatorBytesFunction · 0.45
GetTimestampBytesMethod · 0.45
getValuesBytesMethod · 0.45
writeField3Method · 0.45
writeField4Method · 0.45

Calls 2

writeField1Method · 0.95
writeField2Method · 0.95