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

Method create

bolt/exec/Task.cpp:248–269  ·  view source on GitHub ↗

static.

Source from the content-addressed store, hash-verified

246
247// static.
248std::shared_ptr<Task> Task::create(
249 const std::string& taskId,
250 core::PlanFragment planFragment,
251 int destination,
252 std::shared_ptr<core::QueryCtx> queryCtx,
253 ExecutionMode mode,
254 Consumer consumer,
255 int32_t memoryArbitrationPriority,
256 std::optional<common::SpillDiskOptions> spillDiskOpts,
257 std::function<void(std::exception_ptr)> onError) {
258 return Task::create(
259 taskId,
260 std::move(planFragment),
261 destination,
262 std::move(queryCtx),
263 mode,
264 (consumer ? [c = std::move(consumer)]() { return c; }
265 : ConsumerSupplier{}),
266 memoryArbitrationPriority,
267 std::move(spillDiskOpts),
268 std::move(onError));
269}
270
271std::shared_ptr<Task> Task::create(
272 const std::string& taskId,

Callers 3

PartitionedOutputMethod · 0.45
LocalPartitionMethod · 0.45
CreateMethod · 0.45

Calls 9

queryCtxMethod · 0.80
waitMethod · 0.80
taskReadyToRunFutureMethod · 0.80
setConcurrencyMethod · 0.80
getCurrentConcurrencyMethod · 0.80
createFunction · 0.50
initMethod · 0.45

Tested by

no test coverage detected