![]() |
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.
|
RadixPartitionedTupleData is a PartitionedTupleData that partitions input based on the radix of a hash. More...


Public Member Functions | |
| RadixPartitionedTupleData (BufferManager &buffer_manager, shared_ptr< TupleDataLayout > layout_ptr, MemoryTag tag, idx_t radix_bits_p, idx_t hash_col_idx_p) | |
| RadixPartitionedTupleData (RadixPartitionedTupleData &other) | |
| idx_t | GetRadixBits () const |
| Public Member Functions inherited from duckdb::PartitionedTupleData | |
| shared_ptr< TupleDataLayout > | GetLayoutPtr () const |
| Get the layout of this PartitionedTupleData. | |
| const TupleDataLayout & | GetLayout () const |
| PartitionedTupleDataType | GetType () const |
| Get the partitioning type of this PartitionedTupleData. | |
| void | InitializeAppendState (PartitionedTupleDataAppendState &state, TupleDataPinProperties properties=TupleDataPinProperties::UNPIN_AFTER_DONE) const |
| Initializes a local state for parallel partitioning that can be merged into this PartitionedTupleData. | |
| void | Append (PartitionedTupleDataAppendState &state, DataChunk &input, const SelectionVector &append_sel= *FlatVector::IncrementalSelectionVector(), const idx_t append_count=DConstants::INVALID_INDEX) |
| Appends a DataChunk to this PartitionedTupleData. | |
| void | AppendUnified (PartitionedTupleDataAppendState &state, DataChunk &input, const SelectionVector &append_sel= *FlatVector::IncrementalSelectionVector(), const idx_t append_count=DConstants::INVALID_INDEX) |
| void | Append (PartitionedTupleDataAppendState &state, TupleDataChunkState &input, const idx_t count) |
| Appends rows to this PartitionedTupleData. | |
| void | FlushAppendState (PartitionedTupleDataAppendState &state) |
| Flushes any remaining data in the append state into this PartitionedTupleData. | |
| void | Combine (PartitionedTupleData &other) |
| Combine another PartitionedTupleData into this PartitionedTupleData. | |
| void | Reset () |
| Resets this PartitionedTupleData. | |
| void | Repartition (ClientContext &context, PartitionedTupleData &new_partitioned_data) |
| Repartition this PartitionedTupleData into the new PartitionedTupleData. | |
| void | Unpin () |
| Unpins the data. | |
| unsafe_vector< unique_ptr< TupleDataCollection > > & | GetPartitions () |
| Get the partitions in this PartitionedTupleData. | |
| unique_ptr< TupleDataCollection > | GetUnpartitioned () |
| Get the data of this PartitionedTupleData as a single unpartitioned TupleDataCollection. | |
| idx_t | Count () const |
| Get the count of this PartitionedTupleData. | |
| idx_t | SizeInBytes () const |
| Get the size (in bytes) of this PartitionedTupleData. | |
| idx_t | PartitionCount () const |
| Get the number of partitions of this PartitionedTupleData. | |
| void | GetSizesAndCounts (vector< idx_t > &partition_sizes, vector< idx_t > &partition_counts) const |
| Get the count and size of the largest partition. | |
| string | ToString () |
| Converts this PartitionedTupleData to a string representation. | |
| void | Print () |
| Prints the string representation of this PartitionedTupleData. | |
| template<class TARGET> | |
| TARGET & | Cast () |
| template<class TARGET> | |
| const TARGET & | Cast () const |
Protected Member Functions | |
| void | InitializeAppendStateInternal (PartitionedTupleDataAppendState &state, TupleDataPinProperties properties) const override |
| Initialize a PartitionedTupleDataAppendState for this type of partitioning (optional). | |
| void | ComputePartitionIndices (PartitionedTupleDataAppendState &state, DataChunk &input, const SelectionVector &append_sel, const idx_t append_count) override |
| void | ComputePartitionIndices (Vector &row_locations, idx_t count, Vector &partition_indices, unique_ptr< Vector > &utility_vector) const override |
| Compute partition indices from rows (similar to function above). | |
| idx_t | MaxPartitionIndex () const override |
| Maximum partition index (optional). | |
| void | RepartitionFinalizeStates (PartitionedTupleData &old_partitioned_data, PartitionedTupleData &new_partitioned_data, PartitionedTupleDataAppendState &state, idx_t finished_partition_idx) const override |
| Finalize states while repartitioning - useful for unpinning blocks that are no longer needed (optional). | |
| Protected Member Functions inherited from duckdb::PartitionedTupleData | |
| PartitionedTupleData (PartitionedTupleDataType type, BufferManager &buffer_manager, shared_ptr< TupleDataLayout > &layout_ptr, MemoryTag tag) | |
| PartitionedTupleData can only be instantiated by derived classes. | |
| PartitionedTupleData (PartitionedTupleData &other) | |
| bool | UseFixedSizeMap () const |
| Whether to use fixed size map or regular map. | |
| void | BuildPartitionSel (PartitionedTupleDataAppendState &state, const SelectionVector &append_sel, const idx_t append_count) const |
| void | BuildBufferSpace (PartitionedTupleDataAppendState &state) |
| Builds out the buffer space in the partitions. | |
| template<bool fixed> | |
| void | BuildBufferSpace (PartitionedTupleDataAppendState &state) |
| unique_ptr< TupleDataCollection > | CreatePartitionCollection () |
| Create a collection for a specific a partition. | |
| void | Verify () const |
| Verify count/data size of this PartitionedTupleData. | |
Private Member Functions | |
| void | Initialize () |
Private Attributes | |
| const idx_t | radix_bits |
| The number of radix bits. | |
| const idx_t | hash_col_idx |
| The index of the column holding the hashes. | |
Additional Inherited Members | |
| Static Protected Member Functions inherited from duckdb::PartitionedTupleData | |
| template<bool fixed> | |
| static void | BuildPartitionSel (PartitionedTupleDataAppendState &state, const SelectionVector &append_sel, const idx_t append_count, const idx_t max_partition_idx) |
| Protected Attributes inherited from duckdb::PartitionedTupleData | |
| PartitionedTupleDataType | type |
| BufferManager & | buffer_manager |
| shared_ptr< ArenaAllocator > | stl_allocator |
| shared_ptr< TupleDataLayout > | layout_ptr |
| const TupleDataLayout & | layout |
| const MemoryTag | tag |
| idx_t | count |
| idx_t | data_size |
| mutex | lock |
| unsafe_vector< unique_ptr< TupleDataCollection > > | partitions |
RadixPartitionedTupleData is a PartitionedTupleData that partitions input based on the radix of a hash.
| duckdb::RadixPartitionedTupleData::RadixPartitionedTupleData | ( | BufferManager & | buffer_manager, |
| shared_ptr< TupleDataLayout > | layout_ptr, | ||
| MemoryTag | tag, | ||
| idx_t | radix_bits_p, | ||
| idx_t | hash_col_idx_p ) |
| duckdb::RadixPartitionedTupleData::RadixPartitionedTupleData | ( | RadixPartitionedTupleData & | other | ) |
|
override |
|
inline |
|
private |
|
overrideprotectedvirtual |
Initialize a PartitionedTupleDataAppendState for this type of partitioning (optional).
Reimplemented from duckdb::PartitionedTupleData.

|
overrideprotectedvirtual |
Compute the partition indices for this type of partitioning for the input DataChunk and store them in the partition_data of the local state. If this type creates partitions on the fly (for, e.g., hive), this function is also in charge of creating new partitions and mapping the input data to a partition index
Reimplemented from duckdb::PartitionedTupleData.

|
overrideprotectedvirtual |
Compute partition indices from rows (similar to function above).
Reimplemented from duckdb::PartitionedTupleData.
|
inlineoverrideprotectedvirtual |
Maximum partition index (optional).
Reimplemented from duckdb::PartitionedTupleData.

|
overrideprotectedvirtual |
Finalize states while repartitioning - useful for unpinning blocks that are no longer needed (optional).
Reimplemented from duckdb::PartitionedTupleData.
