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::WindowMergeSortTree Class Referenceabstract
Collaboration diagram for duckdb::WindowMergeSortTree:

Public Types

using GlobalSortStatePtr = unique_ptr< GlobalSinkState >
 
using LocalSortStatePtr = unique_ptr< LocalSinkState >
 
using MergeSortTree32 = MergeSortTree< uint32_t, uint32_t >
 
using MergeSortTree64 = MergeSortTree< uint64_t, uint64_t >
 

Public Member Functions

 WindowMergeSortTree (ClientContext &context, const vector< BoundOrderByNode > &orders, const vector< column_t > &order_idx, const idx_t count, bool unique=false)
 
virtual unique_ptr< LocalSinkStateGetLocalState (ExecutionContext &context)=0
 
optional_ptr< LocalSinkStateInitializeLocalSort (ExecutionContext &context) const
 Make a local sort for a thread.
 
virtual void Finished ()
 Thread-safe post-sort cleanup.
 
bool TryPrepareSortStage (WindowMergeSortTreeLocalState &lstate)
 Sort state machine.
 
void Build ()
 Build the MST in parallel from the sorted data.
 

Public Attributes

const vector< column_torder_idx
 The column indices for sorting.
 
vector< LogicalTypescan_types
 The sorted data schema.
 
vector< idx_tscan_cols
 
vector< idx_tkey_cols
 The sort key columns.
 
unique_ptr< Sortsort
 The sort specification.
 
GlobalSortStatePtr global_sink
 The sorted data.
 
unique_ptr< ColumnDataCollectionsorted
 The resulting sorted data.
 
mutex lock
 Finalize guard.
 
vector< LocalSortStatePtrlocal_sinks
 Local sort set.
 
atomic< WindowMergeSortStage > build_stage
 Finalize stage.
 
idx_t total_tasks = 0
 Tasks launched.
 
idx_t tasks_assigned = 0
 Tasks launched.
 
atomic< idx_ttasks_completed
 Tasks landed.
 
unique_ptr< MergeSortTree32mst32
 
unique_ptr< MergeSortTree64mst64
 

Protected Member Functions

virtual idx_t MeasurePayloadBlocks ()
 

Member Function Documentation

◆ MeasurePayloadBlocks()

virtual idx_t duckdb::WindowMergeSortTree::MeasurePayloadBlocks ( )
protectedvirtual

Find the starts of all the blocks Returns the total number of rows


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