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::ProcessRemainingBatchesEvent Class Reference
Inheritance diagram for duckdb::ProcessRemainingBatchesEvent:
Collaboration diagram for duckdb::ProcessRemainingBatchesEvent:

Public Member Functions

 ProcessRemainingBatchesEvent (const PhysicalBatchCopyToFile &op_p, FixedBatchCopyGlobalState &gstate_p, Pipeline &pipeline_p, ClientContext &context)
void Schedule () override
void FinishEvent () override
 Called right after the event is finished.
Public Member Functions inherited from duckdb::BasePipelineEvent
 BasePipelineEvent (shared_ptr< Pipeline > pipeline)
 BasePipelineEvent (Pipeline &pipeline)
void PrintPipeline () override
Public Member Functions inherited from duckdb::Event
 Event (Executor &executor)
virtual void FinalizeFinish ()
 Called after the event is entirely finished.
void FinishTask ()
void Finish ()
void AddDependency (Event &event)
bool HasDependencies () const
const vector< reference< Event > > & GetParentsVerification () const
void CompleteDependency ()
void SetTasks (vector< shared_ptr< Task > > tasks)
void InsertEvent (shared_ptr< Event > replacement_event)
bool IsFinished () const
ClientContext & GetClientContext ()
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const
Public Member Functions inherited from duckdb::enable_shared_from_this< Event >
shared_ptr< Event > shared_from_this ()

Public Attributes

const PhysicalBatchCopyToFile & op
FixedBatchCopyGlobalState & gstate
ClientContext & context
Public Attributes inherited from duckdb::BasePipelineEvent
shared_ptr< Pipeline > pipeline
 The pipeline that this event belongs to.

Additional Inherited Members

Protected Member Functions inherited from duckdb::enable_shared_from_this< Event >
enable_shared_from_this & operator= (enable_shared_from_this const &) noexcept
Protected Attributes inherited from duckdb::Event
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.

Constructor & Destructor Documentation

◆ ProcessRemainingBatchesEvent()

duckdb::ProcessRemainingBatchesEvent::ProcessRemainingBatchesEvent ( const PhysicalBatchCopyToFile & op_p,
FixedBatchCopyGlobalState & gstate_p,
Pipeline & pipeline_p,
ClientContext & context )
inline
192282 : BasePipelineEvent(pipeline_p), op(op_p), gstate(gstate_p), context(context) {
192283 }

Member Function Documentation

◆ Schedule()

void duckdb::ProcessRemainingBatchesEvent::Schedule ( )
inlineoverridevirtual

Implements duckdb::Event.

192289 {
192290 vector<shared_ptr<Task>> tasks;
192291 for (idx_t i = 0; i < idx_t(TaskScheduler::GetScheduler(context).NumberOfThreads()); i++) {
192292 auto process_task =
192293 make_uniq<ProcessRemainingBatchesTask>(pipeline->executor, shared_from_this(), gstate, context, op);
192294 tasks.push_back(std::move(process_task));
192295 }
192296 D_ASSERT(!tasks.empty());
192297 SetTasks(std::move(tasks));
192298 }
shared_ptr< Pipeline > pipeline
The pipeline that this event belongs to.
Definition duckdb.cpp:35137
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ FinishEvent()

void duckdb::ProcessRemainingBatchesEvent::FinishEvent ( )
inlineoverridevirtual

Called right after the event is finished.

Now that all batches are processed we finish flushing the file to disk

Reimplemented from duckdb::Event.

192300 {
192302 op.FinalFlush(context, gstate);
192303 }

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