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

Public Member Functions

 SortLocalSinkState (const Sort &sort, ClientContext &context)
void InitializeSortedRun (const Sort &sort, ClientContext &context)
Public Member Functions inherited from duckdb::LocalSinkState
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

unique_ptr< SortedRun > sorted_run
 The sorted run that we're appending to.
idx_t maximum_run_size
 The current maximum run size (in bytes, retrieved from global state).
bool external
 Whether this is an external sort (retrieved from global state).
ExpressionExecutor key_executor
DataChunk key
DataChunk payload
Public Attributes inherited from duckdb::LocalSinkState
SourcePartitionInfo partition_info
 Source partition info.

Constructor & Destructor Documentation

◆ SortLocalSinkState()

duckdb::SortLocalSinkState::SortLocalSinkState ( const Sort & sort,
ClientContext & context )
inline
103235 : maximum_run_size(0), external(false), key_executor(context, *sort.create_sort_key) {
103236 key.Initialize(context, {sort.create_sort_key->return_type});
103237 payload.Initialize(context, sort.payload_layout->GetTypes());
103238 }
idx_t maximum_run_size
The current maximum run size (in bytes, retrieved from global state).
Definition duckdb.cpp:103252
bool external
Whether this is an external sort (retrieved from global state).
Definition duckdb.cpp:103254
void sort(InputArray src, OutputArray dst, int flags)

Member Function Documentation

◆ InitializeSortedRun()

void duckdb::SortLocalSinkState::InitializeSortedRun ( const Sort & sort,
ClientContext & context )
inline
103241 {
103242 D_ASSERT(!sorted_run);
103243 // TODO: we want to pass "sort.is_index_sort" instead of just "false" here
103244 // so that we can do an approximate sort, but that causes issues in the ART
103245 sorted_run = make_uniq<SortedRun>(context, sort, false);
103246 }
unique_ptr< SortedRun > sorted_run
The sorted run that we're appending to.
Definition duckdb.cpp:103250

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