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

Method SetUp

bolt/exec/tests/SpillTest.cpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 void SetUp() override {
89 allocator_ = memory::memoryManager()->allocator();
90 tempDir_ = exec::test::TempDirectoryPath::create();
91 if (!isRegisteredVectorSerde()) {
92 bytedance::bolt::serializer::presto::PrestoVectorSerde::
93 registerVectorSerde();
94 }
95 filesystems::registerLocalFileSystem();
96 rng_.seed(1);
97 compressionKind_ = GetParam();
98 }
99
100 uint8_t randPartitionBitOffset() {
101 return folly::Random::rand32(rng_) % std::numeric_limits<uint8_t>::max();

Callers

nothing calls this directly

Calls 6

memoryManagerFunction · 0.85
isRegisteredVectorSerdeFunction · 0.85
registerLocalFileSystemFunction · 0.85
createFunction · 0.50
allocatorMethod · 0.45
seedMethod · 0.45

Tested by

no test coverage detected