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::variant::ToVariantGlobalResultData Struct Reference
Collaboration diagram for duckdb::variant::ToVariantGlobalResultData:

Public Member Functions

 ToVariantGlobalResultData (VariantVectorData &variant, DataChunk &offsets, OrderedOwningStringMap< uint32_t > &dictionary, SelectionVector &keys_selvec)
uint32_t GetOrCreateIndex (const string_t &key)

Public Attributes

VariantVectorData & variant
DataChunk & offsets
OrderedOwningStringMap< uint32_t > & dictionary
 The dictionary to populate with the (unique and sorted) keys.
SelectionVector & keys_selvec
 The selection vector to populate with mapping from keys index -> dictionary index.

Constructor & Destructor Documentation

◆ ToVariantGlobalResultData()

duckdb::variant::ToVariantGlobalResultData::ToVariantGlobalResultData ( VariantVectorData & variant,
DataChunk & offsets,
OrderedOwningStringMap< uint32_t > & dictionary,
SelectionVector & keys_selvec )
inline
134294 : variant(variant), offsets(offsets), dictionary(dictionary), keys_selvec(keys_selvec) {
134295 }
OrderedOwningStringMap< uint32_t > & dictionary
The dictionary to populate with the (unique and sorted) keys.
Definition duckdb.cpp:134308
SelectionVector & keys_selvec
The selection vector to populate with mapping from keys index -> dictionary index.
Definition duckdb.cpp:134310

Member Function Documentation

◆ GetOrCreateIndex()

uint32_t duckdb::variant::ToVariantGlobalResultData::GetOrCreateIndex ( const string_t & key)
inline

This will later be remapped to the sorted idx (see FinalizeVariantKeys in 'to_variant.cpp')

134298 {
134299 auto unsorted_idx = dictionary.size();
134301 return dictionary.emplace(std::make_pair(key, unsorted_idx)).first->second;
134302 }
Here is the caller graph for this function:

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