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

Public Member Functions

 ArrowScanLocalState (unique_ptr< ArrowArrayWrapper > current_chunk, ClientContext &context)
 
void Reset ()
 
ArrowArrayScanStateGetState (idx_t child_idx)
 
- Public Member Functions inherited from duckdb::LocalTableFunctionState
template<class TARGET >
TARGETCast ()
 
template<class TARGET >
const TARGETCast () const
 

Public Attributes

shared_ptr< ArrowArrayWrapperchunk
 
idx_t chunk_offset = 0
 
idx_t batch_index = 0
 
vector< column_tcolumn_ids
 
unordered_map< idx_t, unique_ptr< ArrowArrayScanState > > array_states
 
TableFilterSetfilters = nullptr
 
DataChunk all_columns
 The DataChunk containing all read columns (even filter columns that are immediately removed)
 
ClientContextcontext
 

Constructor & Destructor Documentation

◆ ArrowScanLocalState()

duckdb::ArrowScanLocalState::ArrowScanLocalState ( unique_ptr< ArrowArrayWrapper current_chunk,
ClientContext context 
)
inlineexplicit
27374 : chunk(current_chunk.release()), context(context) {
27375 }

Member Function Documentation

◆ Reset()

void duckdb::ArrowScanLocalState::Reset ( )
inline
27389 {
27390 chunk_offset = 0;
27391 for (auto &col : array_states) {
27392 col.second->Reset();
27393 }
27394 }

◆ GetState()

ArrowArrayScanState & duckdb::ArrowScanLocalState::GetState ( idx_t  child_idx)
inline
27395 {
27396 auto it = array_states.find(child_idx);
27397 if (it == array_states.end()) {
27398 auto child_p = make_uniq<ArrowArrayScanState>(context);
27399 auto &child = *child_p;
27400 array_states.emplace(child_idx, std::move(child_p));
27401 return child;
27402 }
27403 return *it->second;
27404 }

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