![]() |
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.
|


Protected Member Functions | |
| idx_t | RegisterNewPartition (HivePartitionKey key, PartitionedColumnDataAppendState &state) |
| Register a newly discovered partition. | |
| void | AddNewPartition (HivePartitionKey key, idx_t partition_id, PartitionedColumnDataAppendState &state) |
| Add a new partition with the given partition id. | |
Protected Member Functions inherited from duckdb::PartitionedColumnData | |
| virtual idx_t | BufferSize () const |
| Size of the buffers in the append states for this type of partitioning (default 128) | |
| virtual void | InitializeAppendStateInternal (PartitionedColumnDataAppendState &state) const |
| Initialize a PartitionedColumnDataAppendState for this type of partitioning (optional) | |
| virtual idx_t | MaxPartitionIndex () const |
| Maximum partition index (optional) | |
| PartitionedColumnData (PartitionedColumnDataType type, ClientContext &context, vector< LogicalType > types) | |
| PartitionedColumnData can only be instantiated by derived classes. | |
| PartitionedColumnData (const PartitionedColumnData &other) | |
| idx_t | HalfBufferSize () const |
| If the buffer is half full, we append to the partition. | |
| void | CreateAllocator () |
| Create a new shared allocator. | |
| bool | UseFixedSizeMap () const |
| Whether to use fixed size map or regular map. | |
| void | BuildPartitionSel (PartitionedColumnDataAppendState &state, const idx_t append_count) const |
| template<bool fixed> | |
| void | AppendInternal (PartitionedColumnDataAppendState &state, DataChunk &input) |
| Appends a DataChunk to this PartitionedColumnData. | |
| unique_ptr< ColumnDataCollection > | CreatePartitionCollection (idx_t partition_index) const |
| Create a collection for a specific a partition. | |
| unique_ptr< DataChunk > | CreatePartitionBuffer () const |
| Create a DataChunk used for buffering appends to the partition. | |
Protected Attributes | |
| shared_ptr< GlobalHivePartitionState > | global_state |
| Shared HivePartitionedColumnData should always have a global state to allow parallel key discovery. | |
| hive_partition_map_t | local_partition_map |
| Thread-local copy of the partition map. | |
| vector< idx_t > | group_by_columns |
| The columns that make up the key. | |
| Vector | hashes_v |
| Thread-local pre-allocated vector for hashes. | |
| vector< HivePartitionKey > | keys |
| Thread-local pre-allocated HivePartitionKeys. | |
Protected Attributes inherited from duckdb::PartitionedColumnData | |
| PartitionedColumnDataType | type |
| ClientContext & | context |
| vector< LogicalType > | types |
| mutex | lock |
| shared_ptr< PartitionColumnDataAllocators > | allocators |
| vector< unique_ptr< ColumnDataCollection > > | partitions |
Private Member Functions | |
| void | InitializeKeys () |
Additional Inherited Members | |
Static Protected Member Functions inherited from duckdb::PartitionedColumnData | |
| template<bool fixed> | |
| static void | BuildPartitionSel (PartitionedColumnDataAppendState &state, const idx_t append_count) |
| duckdb::HivePartitionedColumnData::HivePartitionedColumnData | ( | ClientContext & | context, |
| vector< LogicalType > | types, | ||
| vector< idx_t > | partition_by_cols, | ||
| shared_ptr< GlobalHivePartitionState > | global_state = nullptr |
||
| ) |
|
overridevirtual |
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::PartitionedColumnData.

| std::map< idx_t, const HivePartitionKey * > duckdb::HivePartitionedColumnData::GetReverseMap | ( | ) |
Reverse lookup map to reconstruct keys from a partition id.
|
protected |
Register a newly discovered partition.


|
protected |
Add a new partition with the given partition id.


|
private |