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.
Loading...
Searching...
No Matches
duckdb::MapUtil Struct Reference

Static Public Member Functions

static void ReinterpretMap (Vector &target, Vector &other, idx_t count)

Member Function Documentation

◆ ReinterpretMap()

void duckdb::MapUtil::ReinterpretMap ( Vector & target,
Vector & other,
idx_t count )
static
227697 {
227698 // Copy the list size
227699 const auto list_size = ListVector::GetListSize(input);
227700 ListVector::SetListSize(result, list_size);
227701
227702 UnifiedVectorFormat input_data;
227703 input.ToUnifiedFormat(count, input_data);
227704
227705 // Copy the list validity
227706 FlatVector::SetValidity(result, input_data.validity);
227707
227708 // Copy the struct validity
227709 UnifiedVectorFormat input_struct_data;
227710 ListVector::GetEntry(input).ToUnifiedFormat(list_size, input_struct_data);
227711 auto &result_struct = ListVector::GetEntry(result);
227712 FlatVector::SetValidity(result_struct, input_struct_data.validity);
227713
227714 // Copy the list buffer (the list_entry_t data)
227715 result.CopyBuffer(input);
227716
227717 auto &input_keys = MapVector::GetKeys(input);
227718 auto &result_keys = MapVector::GetKeys(result);
227719 result_keys.Reference(input_keys);
227720
227721 auto &input_values = MapVector::GetValues(input);
227722 auto &result_values = MapVector::GetValues(result);
227723 result_values.Reference(input_values);
227724
227725 if (input.GetVectorType() == VectorType::DICTIONARY_VECTOR) {
227726 result.Slice(*input_data.sel, count);
227727 }
227728
227729 // Set the right vector type
227730 result.SetVectorType(input.GetVectorType());
227731}
DUCKDB_API void ToUnifiedFormat(idx_t count, UnifiedVectorFormat &data)
Definition duckdb.cpp:136886
static DUCKDB_API const Vector & GetEntry(const Vector &vector)
Gets a reference to the underlying child-vector of a list.
Definition duckdb.cpp:138203
static DUCKDB_API void SetListSize(Vector &vec, idx_t size)
Sets the total size of the underlying child-vector of a list.
Definition duckdb.cpp:138248
static DUCKDB_API idx_t GetListSize(const Vector &vector)
Gets the total size of the underlying child-vector of a list.
Definition duckdb.cpp:138221

The documentation for this struct was generated from the following file: