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

Public Member Functions

 SplitStringMapOperation (string_t *child_key_data, string_t *child_val_data, idx_t &child_start, Vector &varchar_key, Vector &varchar_val)
bool HandleKey (const char *buf, idx_t start_pos, idx_t pos)
void HandleValue (const char *buf, idx_t start_pos, idx_t pos)

Public Attributes

string_t * child_key_data
string_t * child_val_data
idx_t & child_start
Vector & varchar_key
Vector & varchar_val

Constructor & Destructor Documentation

◆ SplitStringMapOperation()

duckdb::SplitStringMapOperation::SplitStringMapOperation ( string_t * child_key_data,
string_t * child_val_data,
idx_t & child_start,
Vector & varchar_key,
Vector & varchar_val )
inline
219220 : child_key_data(child_key_data), child_val_data(child_val_data), child_start(child_start),
219221 varchar_key(varchar_key), varchar_val(varchar_val) {
219222 }

Member Function Documentation

◆ HandleKey()

bool duckdb::SplitStringMapOperation::HandleKey ( const char * buf,
idx_t start_pos,
idx_t pos )
inline
219230 {
219231 if (IsNull(buf, start_pos, pos)) {
219232 FlatVector::SetNull(varchar_val, child_start, true);
219233 FlatVector::SetNull(varchar_key, child_start, true);
219234 child_start++;
219235 return false;
219236 }
219237 child_key_data[child_start] = HandleString(varchar_key, buf, start_pos, pos);
219238 return true;
219239 }
static string_t HandleString(Vector &vec, const char *buf, idx_t start, idx_t end)
Definition duckdb.cpp:219008

◆ HandleValue()

void duckdb::SplitStringMapOperation::HandleValue ( const char * buf,
idx_t start_pos,
idx_t pos )
inline
219241 {
219242 if (IsNull(buf, start_pos, pos)) {
219243 FlatVector::SetNull(varchar_val, child_start, true);
219244 child_start++;
219245 return;
219246 }
219247 child_val_data[child_start] = HandleString(varchar_val, buf, start_pos, pos);
219248 child_start++;
219249 }

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