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

Public Member Functions

 VariantNormalizerState (idx_t result_row, VariantVectorData &source, OrderedOwningStringMap< uint32_t > &dictionary, SelectionVector &keys_selvec)
data_ptr_t GetDestination ()
uint32_t GetOrCreateIndex (const string_t &key)

Public Attributes

uint32_t keys_size = 0
uint32_t children_size = 0
uint32_t values_size = 0
uint32_t blob_size = 0
VariantVectorData & source
OrderedOwningStringMap< uint32_t > & dictionary
SelectionVector & keys_selvec
uint64_t keys_offset
uint64_t children_offset
ValidityMask & keys_index_validity
data_ptr_t blob_data
uint8_t * type_ids
uint32_t * byte_offsets
uint32_t * values_indexes
uint32_t * keys_indexes

Constructor & Destructor Documentation

◆ VariantNormalizerState()

duckdb::VariantNormalizerState::VariantNormalizerState ( idx_t result_row,
VariantVectorData & source,
OrderedOwningStringMap< uint32_t > & dictionary,
SelectionVector & keys_selvec )
238119 : source(source), dictionary(dictionary), keys_selvec(keys_selvec),
238120 keys_index_validity(source.keys_index_validity) {
238121 auto keys_list_entry = source.keys_data[result_row];
238122 auto values_list_entry = source.values_data[result_row];
238123 auto children_list_entry = source.children_data[result_row];
238124
238125 keys_offset = keys_list_entry.offset;
238126 children_offset = children_list_entry.offset;
238127
238128 blob_data = data_ptr_cast(source.blob_data[result_row].GetDataWriteable());
238129 type_ids = source.type_ids_data + values_list_entry.offset;
238130 byte_offsets = source.byte_offset_data + values_list_entry.offset;
238131 values_indexes = source.values_index_data + children_list_entry.offset;
238132 keys_indexes = source.keys_index_data + children_list_entry.offset;
238133}

Member Function Documentation

◆ GetDestination()

data_ptr_t duckdb::VariantNormalizerState::GetDestination ( )
238135 {
238136 return blob_data + blob_size;
238137}

◆ GetOrCreateIndex()

uint32_t duckdb::VariantNormalizerState::GetOrCreateIndex ( const string_t & key)

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

238138 {
238139 auto unsorted_idx = dictionary.size();
238141 return dictionary.emplace(std::make_pair(key, unsorted_idx)).first->second;
238142}
Here is the caller graph for this function:

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