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::StandardFixedSizeAppend Struct Reference

Static Public Member Functions

template<class T>
static void Append (SegmentStatistics &stats, data_ptr_t target, idx_t target_offset, UnifiedVectorFormat &adata, idx_t offset, idx_t count)

Member Function Documentation

◆ Append()

template<class T>
void duckdb::StandardFixedSizeAppend::Append ( SegmentStatistics & stats,
data_ptr_t target,
idx_t target_offset,
UnifiedVectorFormat & adata,
idx_t offset,
idx_t count )
inlinestatic
400775 {
400776 auto sdata = UnifiedVectorFormat::GetData<T>(adata);
400777 auto tdata = reinterpret_cast<T *>(target);
400778 if (!adata.validity.AllValid()) {
400779 for (idx_t i = 0; i < count; i++) {
400780 auto source_idx = adata.sel->get_index(offset + i);
400781 auto target_idx = target_offset + i;
400782 bool is_null = !adata.validity.RowIsValid(source_idx);
400783 if (!is_null) {
400784 stats.statistics.SetHasNoNullFast();
400785 stats.statistics.UpdateNumericStats<T>(sdata[source_idx]);
400786 tdata[target_idx] = sdata[source_idx];
400787 } else {
400788 stats.statistics.SetHasNullFast();
400789 // we insert a NullValue<T> in the null gap for debuggability
400790 // this value should never be used or read anywhere
400791 tdata[target_idx] = NullValue<T>();
400792 }
400793 }
400794 } else {
400795 stats.statistics.SetHasNoNullFast();
400796 for (idx_t i = 0; i < count; i++) {
400797 auto source_idx = adata.sel->get_index(offset + i);
400798 auto target_idx = target_offset + i;
400799 stats.statistics.UpdateNumericStats<T>(sdata[source_idx]);
400800 tdata[target_idx] = sdata[source_idx];
400801 }
400802 }
400803 }
T NullValue()
Placeholder to insert in Vectors or to use for hashing NULLs.
Definition duckdb.cpp:30953
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

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