Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::RangeJoinMaterializeTask Class Reference
Inheritance diagram for duckdb::RangeJoinMaterializeTask:
Collaboration diagram for duckdb::RangeJoinMaterializeTask:

Public Types

using GlobalSortedTable = PhysicalRangeJoin::GlobalSortedTable

Public Member Functions

 RangeJoinMaterializeTask (Pipeline &pipeline, shared_ptr< Event > event, ClientContext &client, GlobalSortedTable &table, idx_t tasks_scheduled)
TaskExecutionResult ExecuteTask (TaskExecutionMode mode) override
string TaskType () const override
Public Member Functions inherited from duckdb::ExecutorTask
 ExecutorTask (Executor &executor, shared_ptr< Event > event)
 ExecutorTask (ClientContext &context, shared_ptr< Event > event, const PhysicalOperator &op)
void Deschedule () override
void Reschedule () override
 Ensures a task is rescheduled to the correct queue.
TaskExecutionResult Execute (TaskExecutionMode mode) override
Public Member Functions inherited from duckdb::Task
virtual bool TaskBlockedOnResult () const
Public Member Functions inherited from duckdb::enable_shared_from_this< Task >
shared_ptr< Task > shared_from_this ()

Private Attributes

Pipeline & pipeline
GlobalSortedTable & table
const idx_t tasks_scheduled

Additional Inherited Members

Public Attributes inherited from duckdb::ExecutorTask
Executor & executor
shared_ptr< Event > event
unique_ptr< ThreadContext > thread_context
optional_ptr< const PhysicalOperator > op
Public Attributes inherited from duckdb::Task
optional_ptr< ProducerToken > token
Protected Member Functions inherited from duckdb::enable_shared_from_this< Task >
enable_shared_from_this & operator= (enable_shared_from_this const &) noexcept

Constructor & Destructor Documentation

◆ RangeJoinMaterializeTask()

duckdb::RangeJoinMaterializeTask::RangeJoinMaterializeTask ( Pipeline & pipeline,
shared_ptr< Event > event,
ClientContext & client,
GlobalSortedTable & table,
idx_t tasks_scheduled )
inline
189965 : ExecutorTask(client, std::move(event), table.op), pipeline(pipeline), table(table),
189966 tasks_scheduled(tasks_scheduled) {
189967 }

Member Function Documentation

◆ ExecuteTask()

TaskExecutionResult duckdb::RangeJoinMaterializeTask::ExecuteTask ( TaskExecutionMode mode)
inlineoverridevirtual

Implements duckdb::ExecutorTask.

189969 {
189970 ExecutionContext execution(pipeline.GetClientContext(), *thread_context, &pipeline);
189971 auto &sort = *table.sort;
189972 auto &sort_global = *table.global_source;
189973 auto sort_local = sort.GetLocalSourceState(execution, sort_global);
189974 InterruptState interrupt((weak_ptr<Task>(shared_from_this())));
189975 OperatorSourceInput input {sort_global, *sort_local, interrupt};
189976 sort.MaterializeSortedRun(execution, input);
189977 if (++table.tasks_completed == tasks_scheduled) {
189978 table.sorted = sort.GetSortedRun(sort_global);
189979 if (!table.sorted) {
189980 table.MaterializeEmpty(execution.client);
189981 }
189982 table.global_source.reset();
189983 }
189984
189985 event->FinishTask();
189986 return TaskExecutionResult::TASK_FINISHED;
189987 }
void sort(InputArray src, OutputArray dst, int flags)

◆ TaskType()

string duckdb::RangeJoinMaterializeTask::TaskType ( ) const
inlineoverridevirtual

Reimplemented from duckdb::Task.

189989 {
189990 return "RangeJoinMaterializeTask";
189991 }

The documentation for this class was generated from the following file: