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

Public Types

using LocalSortStatePtr = unique_ptr<LocalSinkState>

Public Member Functions

 FullSortLocalSinkState (ExecutionContext &context, const FullSort &full_sort)
void Hash (DataChunk &input_chunk, Vector &hash_vector)
 Compute the hash values.
void Combine (ExecutionContext &context)
 Merge the state into the global state.
Public Member Functions inherited from duckdb::LocalSinkState
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

const FullSort & full_sort
 Global state.
ExpressionExecutor sort_exec
 Shared expression evaluation.
DataChunk group_chunk
DataChunk sort_chunk
DataChunk payload_chunk
LocalSortStatePtr sort_local
unique_ptr< ColumnDataCollection > unsorted
ColumnDataAppendState unsorted_append
Public Attributes inherited from duckdb::LocalSinkState
SourcePartitionInfo partition_info
 Source partition info.

Constructor & Destructor Documentation

◆ FullSortLocalSinkState()

duckdb::FullSortLocalSinkState::FullSortLocalSinkState ( ExecutionContext & context,
const FullSort & full_sort )
101475 : full_sort(full_sort), sort_exec(context.client) {
101476 vector<LogicalType> sort_types;
101477 for (const auto &expr : full_sort.sort_exprs) {
101478 sort_types.emplace_back(expr->return_type);
101479 sort_exec.AddExpression(*expr);
101480 }
101481 sort_chunk.Initialize(context.client, sort_types);
101482
101483 auto payload_types = full_sort.payload_types;
101484
101485 // OVER(ORDER BY...)
101486 auto &sort = *full_sort.sort;
101487 sort_local = sort.GetLocalSinkState(context);
101488 payload_chunk.Initialize(context.client, payload_types);
101489}
const FullSort & full_sort
Global state.
Definition duckdb.cpp:101453
ExpressionExecutor sort_exec
Shared expression evaluation.
Definition duckdb.cpp:101456
void sort(InputArray src, OutputArray dst, int flags)

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