MCPcopy Create free account
hub / github.com/apache/arrow / WriteDummyFile

Method WriteDummyFile

cpp/src/arrow/io/hdfs_test.cc:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 Status WriteDummyFile(const std::string& path, const uint8_t* buffer, int64_t size,
59 bool append = false, int buffer_size = 0, int16_t replication = 0,
60 int default_block_size = 0) {
61 std::shared_ptr<HdfsOutputStream> file;
62 RETURN_NOT_OK(client_->OpenWritable(path, append, buffer_size, replication,
63 default_block_size, &file));
64
65 RETURN_NOT_OK(file->Write(buffer, size));
66 RETURN_NOT_OK(file->Close());
67
68 return Status::OK();
69 }
70
71 std::string ScratchPath(const std::string& name) {
72 std::stringstream ss;

Callers 1

TEST_FFunction · 0.80

Calls 4

OKFunction · 0.50
OpenWritableMethod · 0.45
WriteMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected