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

Public Types

using HashGroupPtr = unique_ptr<ColumnDataCollection>
using SortedRunPtr = unique_ptr<SortedRun>
using ChunkRow = HashedSort::ChunkRow
using ChunkRows = HashedSort::ChunkRows

Public Member Functions

 HashedSortGlobalSourceState (ClientContext &client, HashedSortGlobalSinkState &gsink)
Public Member Functions inherited from duckdb::GlobalSourceState
virtual idx_t MaxThreads ()
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const
Public Member Functions inherited from duckdb::StateWithBlockableTasks
unique_lock< mutex > Lock ()
void PreventBlocking (const unique_lock< mutex > &guard)
bool BlockTask (const unique_lock< mutex > &guard, const InterruptState &interrupt_state)
 Add a task to 'blocked_tasks' before returning SourceResultType::BLOCKED (must hold the lock).
bool CanBlock (const unique_lock< mutex > &guard) const
bool UnblockTasks (const unique_lock< mutex > &guard)
 Unblock all tasks (must hold the lock).
SinkResultType BlockSink (const unique_lock< mutex > &guard, const InterruptState &interrupt_state)
SourceResultType BlockSource (const unique_lock< mutex > &guard, const InterruptState &interrupt_state)
void VerifyLock (const unique_lock< mutex > &guard) const

Public Attributes

HashedSortGlobalSinkState & gsink
ChunkRows chunk_rows

Constructor & Destructor Documentation

◆ HashedSortGlobalSourceState()

duckdb::HashedSortGlobalSourceState::HashedSortGlobalSourceState ( ClientContext & client,
HashedSortGlobalSinkState & gsink )
102260 : gsink(gsink) {
102261 if (!gsink.count) {
102262 return;
102263 }
102264
102265 auto &partitions = gsink.grouping_data->GetPartitions();
102266 for (hash_t hash_bin = 0; hash_bin < partitions.size(); ++hash_bin) {
102267 ChunkRow chunk_row;
102268
102269 auto &hash_group = gsink.hash_groups[hash_bin];
102270 if (hash_group) {
102271 chunk_row.count = partitions[hash_bin]->Count();
102272 chunk_row.chunks = (chunk_row.count + STANDARD_VECTOR_SIZE - 1) / STANDARD_VECTOR_SIZE;
102273 }
102274
102275 chunk_rows.emplace_back(chunk_row);
102276 }
102277}
uint64_t hash_t
The type used for hashes.
Definition duckdb.hpp:243

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