![]() |
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.
|
#include <duckdb.hpp>


Public Member Functions | |
| unique_ptr< PartitionedColumnData > | CreateShared () |
| void | InitializeAppendState (PartitionedColumnDataAppendState &state) const |
| Initializes a local state for parallel partitioning that can be merged into this PartitionedColumnData. | |
| void | Append (PartitionedColumnDataAppendState &state, DataChunk &input) |
| Appends a DataChunk to this PartitionedColumnData. | |
| void | FlushAppendState (PartitionedColumnDataAppendState &state) |
| Flushes any remaining data in the append state into this PartitionedColumnData. | |
| void | Combine (PartitionedColumnData &other) |
| Combine another PartitionedColumnData into this PartitionedColumnData. | |
| vector< unique_ptr< ColumnDataCollection > > & | GetPartitions () |
| Get the partitions in this PartitionedColumnData. | |
| template<class TARGET > | |
| TARGET & | Cast () |
| template<class TARGET > | |
| const TARGET & | Cast () const |
Protected Member Functions | |
| 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 void | ComputePartitionIndices (PartitionedColumnDataAppendState &state, DataChunk &input) |
| 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. | |
Static Protected Member Functions | |
| template<bool fixed> | |
| static void | BuildPartitionSel (PartitionedColumnDataAppendState &state, const idx_t append_count) |
Protected Attributes | |
| PartitionedColumnDataType | type |
| ClientContext & | context |
| vector< LogicalType > | types |
| mutex | lock |
| shared_ptr< PartitionColumnDataAllocators > | allocators |
| vector< unique_ptr< ColumnDataCollection > > | partitions |
PartitionedColumnData represents partitioned columnar data, which serves as an interface for different types of partitioning, e.g., radix, hive
Size of the buffers in the append states for this type of partitioning (default 128)

|
inlineprotectedvirtual |
Initialize a PartitionedColumnDataAppendState for this type of partitioning (optional)
|
inlineprotectedvirtual |
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 in duckdb::HivePartitionedColumnData.
Maximum partition index (optional)
|
inlineprotected |
If the buffer is half full, we append to the partition.

|
protected |
Builds a selection vector in the Append state for the partitions
|
inlineprotected |
Create a collection for a specific a partition.
