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

Method makeTask

bolt/exec/tests/ExchangeClientTest.cpp:74–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 std::shared_ptr<Task> makeTask(
75 const std::string& taskId,
76 const core::PlanNodePtr& planNode) {
77 auto queryCtx = core::QueryCtx::create(executor_.get());
78 queryCtx->testingOverrideMemoryPool(
79 memory::memoryManager()->addRootPool(queryCtx->queryId()));
80 return Task::create(
81 taskId,
82 core::PlanFragment{planNode},
83 0,
84 std::move(queryCtx),
85 Task::ExecutionMode::kParallel,
86 exec::Consumer{});
87 }
88
89 int32_t enqueue(
90 const std::string& taskId,

Callers

nothing calls this directly

Calls 6

memoryManagerFunction · 0.85
addRootPoolMethod · 0.80
createFunction · 0.50
getMethod · 0.45
queryIdMethod · 0.45

Tested by

no test coverage detected