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::VariantShreddingState Struct Referenceabstract
Collaboration diagram for duckdb::VariantShreddingState:

Public Member Functions

 VariantShreddingState (const LogicalType &type, idx_t total_count)
bool ValueIsShredded (UnifiedVariantVectorData &variant, idx_t row, uint32_t values_index)
void SetShredded (uint32_t row, uint32_t values_index, uint32_t result_idx)
case_insensitive_string_set_t ObjectFields ()
virtual const unordered_set< VariantLogicalType > & GetVariantTypes ()=0

Public Attributes

const LogicalType & type
 The type the field is shredded on.
SelectionVector shredded_sel
 row that is shredded
SelectionVector values_index_sel
 'values_index' of the shredded value
SelectionVector result_sel
 result row of the shredded value
idx_t count = 0
 The amount of rows that are shredded on.

Constructor & Destructor Documentation

◆ VariantShreddingState()

duckdb::VariantShreddingState::VariantShreddingState ( const LogicalType & type,
idx_t total_count )
explicit
252977 : type(type), shredded_sel(total_count), values_index_sel(total_count), result_sel(total_count) {
252978}
SelectionVector values_index_sel
'values_index' of the shredded value
Definition duckdb.cpp:252641
SelectionVector shredded_sel
row that is shredded
Definition duckdb.cpp:252639
const LogicalType & type
The type the field is shredded on.
Definition duckdb.cpp:252637
SelectionVector result_sel
result row of the shredded value
Definition duckdb.cpp:252643

◆ ~VariantShreddingState()

virtual duckdb::VariantShreddingState::~VariantShreddingState ( )
inlinevirtual
252626 {
252627 }

Member Function Documentation

◆ ValueIsShredded()

bool duckdb::VariantShreddingState::ValueIsShredded ( UnifiedVariantVectorData & variant,
idx_t row,
uint32_t values_index )
252980 {
252981 auto type_id = variant.GetTypeId(row, values_index);
252982 if (!GetVariantTypes().count(type_id)) {
252983 return false;
252984 }
252985 if (type_id == VariantLogicalType::DECIMAL) {
252986 auto physical_type = type.InternalType();
252987 auto decimal_data = VariantUtils::DecodeDecimalData(variant, row, values_index);
252988 auto decimal_physical_type = decimal_data.GetPhysicalType();
252989 return physical_type == decimal_physical_type;
252990 }
252991 return true;
252992}
idx_t count
The amount of rows that are shredded on.
Definition duckdb.cpp:252645

◆ SetShredded()

void duckdb::VariantShreddingState::SetShredded ( uint32_t row,
uint32_t values_index,
uint32_t result_idx )
252994 {
252995 shredded_sel[count] = row;
252996 values_index_sel[count] = values_index;
252997 result_sel[count] = result_idx;
252998 count++;
252999}

◆ ObjectFields()

case_insensitive_string_set_t duckdb::VariantShreddingState::ObjectFields ( )
253001 {
253002 D_ASSERT(type.id() == LogicalTypeId::STRUCT);
253003 case_insensitive_string_set_t res;
253004 auto &child_types = StructType::GetChildTypes(type);
253005 for (auto &entry : child_types) {
253006 auto &type = entry.first;
253007 res.emplace(type.c_str(), static_cast<uint32_t>(type.size()));
253008 }
253009 return res;
253010}
::uint32_t uint32_t

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