![]() |
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.
|
Static Public Member Functions | |
| static DUCKDB_API bool | IsNestedType (const UnifiedVariantVectorData &variant, idx_t row, uint32_t value_index) |
| static DUCKDB_API VariantDecimalData | DecodeDecimalData (const UnifiedVariantVectorData &variant, idx_t row, uint32_t value_index) |
| static DUCKDB_API VariantNestedData | DecodeNestedData (const UnifiedVariantVectorData &variant, idx_t row, uint32_t value_index) |
| static DUCKDB_API string_t | DecodeStringData (const UnifiedVariantVectorData &variant, idx_t row, uint32_t value_index) |
| static DUCKDB_API vector< string > | GetObjectKeys (const UnifiedVariantVectorData &variant, idx_t row, const VariantNestedData &nested_data) |
| static DUCKDB_API void | FindChildValues (const UnifiedVariantVectorData &variant, const VariantPathComponent &component, optional_ptr< const SelectionVector > sel, SelectionVector &res, ValidityMask &res_validity, const VariantNestedData *nested_data, const ValidityMask &validity, idx_t count) |
| static DUCKDB_API VariantNestedDataCollectionResult | CollectNestedData (const UnifiedVariantVectorData &variant, VariantLogicalType expected_type, const SelectionVector &value_index_sel, idx_t count, optional_idx row, idx_t offset, VariantNestedData *child_data, ValidityMask &validity) |
| static DUCKDB_API vector< uint32_t > | ValueIsNull (const UnifiedVariantVectorData &variant, const SelectionVector &sel, idx_t count, optional_idx row) |
| static DUCKDB_API Value | ConvertVariantToValue (const UnifiedVariantVectorData &variant, idx_t row, uint32_t values_idx) |
| static DUCKDB_API bool | Verify (Vector &variant, const SelectionVector &sel_p, idx_t count) |
| static DUCKDB_API void | FinalizeVariantKeys (Vector &variant, OrderedOwningStringMap< uint32_t > &dictionary, SelectionVector &sel, idx_t sel_size) |
| static DUCKDB_API void | VariantExtract (Vector &input, const vector< VariantPathComponent > &components, Vector &result, idx_t count) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
The list is too small to contain this index
Found the key we're looking for


|
static |
NOTE: the validity is assumed to be from a FlatVector Is the input row NULL ?
Is the variant value NULL ?
Is the type of the VARIANT correct?
Record the type of the first row that doesn't have the expected type


|
static |
Get the index into 'values'
|
static |
|
static |
keys
keys_entry
children
children.key_id
children.value_id
values
values.type_id
values.byte_offset
data
verify keys
verify children
verify values
If the root value is NULL, the row itself should be NULL, not use VARIANT_NULL for the value
Verify the validity of array/object key_ids

|
static |
Adjust the selection vector to point to the right dictionary index


|
static |
Extract always starts by looking at value_index 0
Perform the extract
Look up the value_index of the child we're extracting
No child could be extracted, set to NULL
Get the index into 'values'
We reference the input, creating a dictionary over the 'values' list entry to remap what value_index 0 points to. This way we can perform a zero-copy extract on the variant column (when there are no nulls). The following code looks complicated but is necessary to avoid modifying the 'input'
Create a new Variant that references the existing data of the input Variant
Copy the existing 'values' list entry data
Prepare the selection vector to remap index 0 of each row
Create a copy of the vector, because we used Reference before, and we now need to adjust the data Which is a problem if we're still sharing the memory with 'input'

