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::PartitionedTupleDataAppendState Struct Reference

Local state for parallel partitioning. More...

Collaboration diagram for duckdb::PartitionedTupleDataAppendState:

Public Member Functions

template<bool fixed>
std::conditional< fixed, fixed_size_map_t< list_entry_t >, perfect_map_t< list_entry_t > >::type & GetMap ()
 
optional_idx GetPartitionIndexIfSinglePartition (const bool use_fixed_size_map)
 
template<>
perfect_map_t< list_entry_t > & GetMap ()
 
template<>
fixed_size_map_t< list_entry_t > & GetMap ()
 

Public Attributes

Vector partition_indices
 
SelectionVector partition_sel
 
SelectionVector reverse_partition_sel
 
perfect_map_t< list_entry_tpartition_entries
 
fixed_size_map_t< list_entry_tfixed_partition_entries
 
unsafe_vector< TupleDataPinStatepartition_pin_states
 
TupleDataChunkState chunk_state
 
unique_ptr< Vectorutility_vector
 Utility Vector for when repartitioning and copying rows straight from one collection to another.
 

Static Public Attributes

static constexpr idx_t MAP_THRESHOLD = 256
 

Detailed Description

Local state for parallel partitioning.

Constructor & Destructor Documentation

◆ PartitionedTupleDataAppendState()

duckdb::PartitionedTupleDataAppendState::PartitionedTupleDataAppendState ( )
inline
57551 : partition_indices(LogicalType::UBIGINT) {
57552 }

Member Function Documentation

◆ GetMap() [1/3]

template<bool fixed>
std::conditional< fixed, fixed_size_map_t< list_entry_t >, perfect_map_t< list_entry_t > >::type & duckdb::PartitionedTupleDataAppendState::GetMap ( )
inline
57571 {
57572 throw NotImplementedException("PartitionedTupleDataAppendState::GetMap for boolean value");
57573 }

◆ GetPartitionIndexIfSinglePartition()

optional_idx duckdb::PartitionedTupleDataAppendState::GetPartitionIndexIfSinglePartition ( const bool  use_fixed_size_map)
inline
57575 {
57576 optional_idx result;
57577 if (use_fixed_size_map) {
57578 if (fixed_partition_entries.size() == 1) {
57579 result = fixed_partition_entries.begin().GetKey();
57580 }
57581 } else {
57582 if (partition_entries.size() == 1) {
57583 result = partition_entries.begin()->first;
57584 }
57585 }
57586 return result;
57587 }

◆ GetMap() [2/3]

template<>
perfect_map_t< list_entry_t > & duckdb::PartitionedTupleDataAppendState::GetMap ( )
inline
57591 {
57592 return partition_entries;
57593}

◆ GetMap() [3/3]

template<>
fixed_size_map_t< list_entry_t > & duckdb::PartitionedTupleDataAppendState::GetMap ( )
inline
57596 {
57597 return fixed_partition_entries;
57598}

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