MCPcopy Create free account
hub / github.com/bytedance/bolt / writeToFile

Function writeToFile

bolt/exec/tests/JoinFuzzer.cpp:743–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741}
742
743void writeToFile(
744 const std::string& path,
745 const VectorPtr& vector,
746 memory::MemoryPool* pool) {
747 dwrf::WriterOptions options;
748 options.schema = vector->type();
749 options.memoryPool = pool;
750 auto writeFile = std::make_unique<LocalWriteFile>(path, true, false);
751 auto sink =
752 std::make_unique<dwio::common::WriteFileSink>(std::move(writeFile), path);
753 dwrf::Writer writer(std::move(sink), options);
754 writer.write(vector);
755 writer.close();
756}
757
758// static
759std::shared_ptr<connector::ConnectorSplit> JoinFuzzer::makeSplit(

Callers 15

TEST_FFunction · 0.70
TEST_FFunction · 0.70
DEBUG_ONLY_TEST_FFunction · 0.70
TEST_FFunction · 0.70
TEST_PFunction · 0.70
TEST_FFunction · 0.70
writeToFilesMethod · 0.70
TEST_FFunction · 0.70
setupSourcesMethod · 0.70
TEST_FFunction · 0.70
TEST_FFunction · 0.70

Calls 3

typeMethod · 0.45
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected