![]() |
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.
|
PartitionedColumnData represents partitioned columnar data, which serves as an interface for different types of partitioning, e.g., radix, hive. More...
#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) |
| 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. | |
| 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 |
| Builds a selection vector in the Append state for the partitions. | |
| 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.
|
virtual |
|
protected |
PartitionedColumnData can only be instantiated by derived classes.

|
protected |
| unique_ptr< PartitionedColumnData > duckdb::PartitionedColumnData::CreateShared | ( | ) |
| void duckdb::PartitionedColumnData::InitializeAppendState | ( | PartitionedColumnDataAppendState & | state | ) | const |
Initializes a local state for parallel partitioning that can be merged into this PartitionedColumnData.

| void duckdb::PartitionedColumnData::Append | ( | PartitionedColumnDataAppendState & | state, |
| DataChunk & | input ) |
Appends a DataChunk to this PartitionedColumnData.

| void duckdb::PartitionedColumnData::FlushAppendState | ( | PartitionedColumnDataAppendState & | state | ) |
Flushes any remaining data in the append state into this PartitionedColumnData.
| void duckdb::PartitionedColumnData::Combine | ( | PartitionedColumnData & | other | ) |
Combine another PartitionedColumnData into this PartitionedColumnData.

| vector< unique_ptr< ColumnDataCollection > > & duckdb::PartitionedColumnData::GetPartitions | ( | ) |
Get the partitions in this PartitionedColumnData.
|
inlineprotectedvirtual |
Size of the buffers in the append states for this type of partitioning (default 128).
Reimplemented in duckdb::RadixPartitionedColumnData.

|
inlineprotectedvirtual |
Initialize a PartitionedColumnDataAppendState for this type of partitioning (optional).
Reimplemented in duckdb::RadixPartitionedColumnData.

|
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, and duckdb::RadixPartitionedColumnData.

|
inlineprotectedvirtual |
Maximum partition index (optional).
Reimplemented in duckdb::RadixPartitionedColumnData.

|
inlineprotected |
If the buffer is half full, we append to the partition.


|
protected |
Create a new shared allocator.
|
protected |
Whether to use fixed size map or regular map.


|
protected |
Builds a selection vector in the Append state for the partitions.


|
staticprotected |
|
protected |
Appends a DataChunk to this PartitionedColumnData.


|
inlineprotected |
Create a collection for a specific a partition.

|
protected |
Create a DataChunk used for buffering appends to the partition.


|
inline |
|
inline |