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::ChunkScanState Class Referenceabstract

Abstract chunk fetcher. More...

#include <duckdb.hpp>

Inheritance diagram for duckdb::ChunkScanState:
Collaboration diagram for duckdb::ChunkScanState:

Public Member Functions

 ChunkScanState (const ChunkScanState &other)=delete
 ChunkScanState (ChunkScanState &&other)=default
ChunkScanState & operator= (const ChunkScanState &other)=delete
ChunkScanState & operator= (ChunkScanState &&other)=default
virtual bool LoadNextChunk (ErrorData &error)=0
virtual bool HasError () const =0
virtual ErrorData & GetError ()=0
virtual const vector< LogicalType > & Types () const =0
virtual const vector< string > & Names () const =0
idx_t CurrentOffset () const
idx_t RemainingInChunk () const
DataChunk & CurrentChunk ()
bool ChunkIsEmpty () const
bool Finished () const
bool ScanStarted () const
void IncreaseOffset (idx_t increment, bool unsafe=false)

Protected Attributes

idx_t offset = 0
bool finished = false
unique_ptr< DataChunk > current_chunk

Detailed Description

Abstract chunk fetcher.

Constructor & Destructor Documentation

◆ ChunkScanState()

duckdb::ChunkScanState::ChunkScanState ( )
explicit
272047 {
272048}

◆ ~ChunkScanState()

duckdb::ChunkScanState::~ChunkScanState ( )
virtual
272050 {
272051}

Member Function Documentation

◆ CurrentOffset()

idx_t duckdb::ChunkScanState::CurrentOffset ( ) const
272053 {
272054 return offset;
272055}

◆ RemainingInChunk()

idx_t duckdb::ChunkScanState::RemainingInChunk ( ) const
272080 {
272081 if (ChunkIsEmpty()) {
272082 return 0;
272083 }
272084 D_ASSERT(current_chunk);
272085 D_ASSERT(offset <= current_chunk->size());
272086 return current_chunk->size() - offset;
272087}
GOpaque< Size > size(const GMat &src)

◆ CurrentChunk()

DataChunk & duckdb::ChunkScanState::CurrentChunk ( )
272074 {
272075 // Scan must already be started
272076 D_ASSERT(current_chunk);
272077 return *current_chunk;
272078}

◆ ChunkIsEmpty()

bool duckdb::ChunkScanState::ChunkIsEmpty ( ) const
272062 {
272063 return !current_chunk || current_chunk->size() == 0;
272064}

◆ Finished()

bool duckdb::ChunkScanState::Finished ( ) const
272066 {
272067 return finished;
272068}

◆ ScanStarted()

bool duckdb::ChunkScanState::ScanStarted ( ) const
272070 {
272071 return !ChunkIsEmpty();
272072}

◆ IncreaseOffset()

void duckdb::ChunkScanState::IncreaseOffset ( idx_t increment,
bool unsafe = false )
272057 {
272058 D_ASSERT(unsafe || increment <= RemainingInChunk());
272059 offset += increment;
272060}

The documentation for this class was generated from the following files: