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

Method SetUp

bolt/exec/tests/ExchangeClientTest.cpp:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 void SetUp() override {
52 executor_ = std::make_unique<folly::CPUThreadPoolExecutor>(16);
53 exec::ExchangeSource::factories().clear();
54 exec::ExchangeSource::registerFactory(test::createLocalExchangeSource);
55 if (!isRegisteredVectorSerde()) {
56 bolt::serializer::presto::PrestoVectorSerde::registerVectorSerde();
57 }
58
59 bufferManager_ = OutputBufferManager::getInstance().lock();
60 }
61
62 std::unique_ptr<SerializedPage> toSerializedPage(const RowVectorPtr& vector) {
63 auto data = std::make_unique<VectorStreamGroup>(pool());

Callers

nothing calls this directly

Calls 4

isRegisteredVectorSerdeFunction · 0.85
registerVectorSerdeFunction · 0.85
lockMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected