|
|
GlobalSortedTable & | table |
|
shared_ptr< Pipeline > | pipeline |
| | The pipeline that this event belongs to.
|
|
| enable_shared_from_this & | operator= (enable_shared_from_this const &) noexcept |
|
Executor & | executor |
|
atomic< idx_t > | finished_tasks |
| | The current threads working on the event.
|
|
atomic< idx_t > | total_tasks |
| | The maximum amount of threads that can work on the event.
|
| atomic< idx_t > | finished_dependencies |
|
idx_t | total_dependencies |
| | The total amount of dependencies.
|
|
vector< weak_ptr< Event > > | parents |
| | The events that depend on this event to run.
|
|
vector< reference< Event > > | parents_raw |
| | Raw pointers to the parents (used for verification only).
|
|
atomic< bool > | finished |
| | Whether or not the event is finished executing.
|
◆ RangeJoinMaterializeEvent()
| duckdb::RangeJoinMaterializeEvent::RangeJoinMaterializeEvent |
( |
GlobalSortedTable & | table, |
|
|
Pipeline & | pipeline ) |
|
inline |
190008 : BasePipelineEvent(
pipeline), table(table) {
190009 }
shared_ptr< Pipeline > pipeline
The pipeline that this event belongs to.
Definition duckdb.cpp:35137
◆ Schedule()
| void duckdb::RangeJoinMaterializeEvent::Schedule |
( |
| ) |
|
|
inlineoverridevirtual |
Implements duckdb::Event.
190014 {
190015 auto &client =
pipeline->GetClientContext();
190016
190017
190018 auto &ts = TaskScheduler::GetScheduler(client);
190019 auto num_threads = NumericCast<idx_t>(ts.NumberOfThreads());
190020 vector<shared_ptr<Task>> tasks;
190021
190022 const auto tasks_scheduled = MinValue<idx_t>(num_threads, table.global_source->MaxThreads());
190023 for (
idx_t tnum = 0; tnum < tasks_scheduled; ++tnum) {
190024 tasks.push_back(
190025 make_uniq<RangeJoinMaterializeTask>(*
pipeline, shared_from_this(), client, table, tasks_scheduled));
190026 }
190027
190028 SetTasks(std::move(tasks));
190029 }
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
The documentation for this class was generated from the following file: