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

Method makeTask

bolt/exec/tests/MultiFragmentTest.cpp:83–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 std::shared_ptr<Task> makeTask(
84 const std::string& taskId,
85 const core::PlanNodePtr& planNode,
86 int destination = 0,
87 Consumer consumer = nullptr,
88 int64_t maxMemory = memory::kMaxMemory) const {
89 auto configCopy = configSettings_;
90 auto queryCtx = core::QueryCtx::create(
91 executor_.get(), core::QueryConfig(std::move(configCopy)));
92 queryCtx->testingOverrideMemoryPool(memory::memoryManager()->addRootPool(
93 queryCtx->queryId(), maxMemory, MemoryReclaimer::create()));
94 core::PlanFragment planFragment{planNode};
95 return Task::create(
96 taskId,
97 std::move(planFragment),
98 destination,
99 std::move(queryCtx),
100 Task::ExecutionMode::kParallel,
101 std::move(consumer));
102 }
103
104 std::shared_ptr<Task> makeTask(
105 const std::string& taskId,

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected