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

Static Public Member Functions

static void Initialize (ArrowAppendData &result, const LogicalType &type, idx_t capacity)
 
static void Append (ArrowAppendData &append_data, Vector &input, idx_t from, idx_t to, idx_t input_size)
 
static void Finalize (ArrowAppendData &append_data, const LogicalType &type, ArrowArray *result)
 

Member Function Documentation

◆ Initialize()

void duckdb::ArrowFixedSizeListData::Initialize ( ArrowAppendData result,
const LogicalType type,
idx_t  capacity 
)
static
33031 {
33032 auto &child_type = ArrayType::GetChildType(type);
33033 auto array_size = ArrayType::GetSize(type);
33034 auto child_buffer = ArrowAppender::InitializeChild(child_type, capacity * array_size, result.options);
33035 result.child_data.push_back(std::move(child_buffer));
33036}

◆ Append()

void duckdb::ArrowFixedSizeListData::Append ( ArrowAppendData append_data,
Vector input,
idx_t  from,
idx_t  to,
idx_t  input_size 
)
static
33039 {
33040 UnifiedVectorFormat format;
33041 input.ToUnifiedFormat(input_size, format);
33042 idx_t size = to - from;
33043 append_data.AppendValidity(format, from, to);
33044 input.Flatten(input_size);
33045 auto array_size = ArrayType::GetSize(input.GetType());
33046 auto &child_vector = ArrayVector::GetEntry(input);
33047 auto &child_data = *append_data.child_data[0];
33048 child_data.append_vector(child_data, child_vector, from * array_size, to * array_size, size * array_size);
33049 append_data.row_count += size;
33050}
GOpaque< Size > size(const GMat &src)
static DUCKDB_API const Vector & GetEntry(const Vector &vector)
Gets a reference to the underlying child-vector of an array.

◆ Finalize()

void duckdb::ArrowFixedSizeListData::Finalize ( ArrowAppendData append_data,
const LogicalType type,
ArrowArray result 
)
static
33052 {
33053 result->n_buffers = 1;
33054 auto &child_type = ArrayType::GetChildType(type);
33055 ArrowAppender::AddChildren(append_data, 1);
33056 result->children = append_data.child_pointers.data();
33057 result->n_children = 1;
33058 append_data.child_arrays[0] = *ArrowAppender::FinalizeChild(child_type, std::move(append_data.child_data[0]));
33059}

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