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::GlobMultiFileList Class Reference

MultiFileList that takes a list of globs and resolves all of the globs lazily into files. More...

Inheritance diagram for duckdb::GlobMultiFileList:
Collaboration diagram for duckdb::GlobMultiFileList:

Public Member Functions

 GlobMultiFileList (ClientContext &context, vector< string > globs, FileGlobInput input)
 
vector< OpenFileInfoGetDisplayFileList (optional_idx max_files=optional_idx()) const override
 
- Public Member Functions inherited from duckdb::LazyMultiFileList
 LazyMultiFileList (optional_ptr< ClientContext > context)
 
vector< OpenFileInfoGetAllFiles () const override
 
FileExpandResult GetExpandResult () const override
 
idx_t GetTotalFileCount () const override
 Get the total file count - forces all files to be expanded / known so the exact count can be computed.
 
MultiFileCount GetFileCount (idx_t min_exact_count=0) const override
 
- Public Member Functions inherited from duckdb::MultiFileList
MultiFileListIterationHelper Files () const
 Get Iterator over the files for pretty for loops.
 
void InitializeScan (MultiFileListScanData &iterator) const
 Initialize a sequential scan over a file list.
 
bool Scan (MultiFileListScanData &iterator, OpenFileInfo &result_file) const
 Scan the next file into result_file, returns false when out of files.
 
OpenFileInfo GetFirstFile () const
 Returns the first file or an empty string if GetTotalFileCount() == 0.
 
bool IsEmpty () const
 Syntactic sugar for GetExpandResult() == FileExpandResult::NO_FILES.
 
virtual unique_ptr< MultiFileListComplexFilterPushdown (ClientContext &context, const MultiFileOptions &options, MultiFilePushdownInfo &info, vector< unique_ptr< Expression > > &filters) const
 Virtual functions for subclasses.
 
virtual unique_ptr< MultiFileListDynamicFilterPushdown (ClientContext &context, const MultiFileOptions &options, const vector< string > &names, const vector< LogicalType > &types, const vector< column_t > &column_ids, TableFilterSet &filters) const
 
virtual unique_ptr< NodeStatisticsGetCardinality (ClientContext &context) const
 
virtual unique_ptr< MultiFileListCopy () const
 
template<class TARGET >
TARGETCast ()
 
template<class TARGET >
const TARGETCast () const
 

Protected Member Functions

bool ExpandNextPath () const override
 Grabs the next path and expands it into Expanded paths: returns false if no more files to expand.
 
- Protected Member Functions inherited from duckdb::LazyMultiFileList
bool FileIsAvailable (idx_t i) const override
 Whether or not the file at the index is available instantly - or if this requires additional I/O.
 
OpenFileInfo GetFile (idx_t i) const override
 Get the i-th expanded file.
 

Protected Attributes

ClientContextcontext
 The ClientContext for globbing.
 
const vector< string > globs
 The list of globs to expand.
 
const FileGlobInput glob_input
 Glob input.
 
idx_t current_glob
 The current glob to expand.
 
vector< unique_ptr< MultiFileList > > file_lists
 File lists for the underlying globs.
 
MultiFileListScanData scan_state
 Current scan state.
 
- Protected Attributes inherited from duckdb::LazyMultiFileList
mutex lock
 
vector< OpenFileInfoexpanded_files
 The expanded files.
 
bool all_files_expanded = false
 Whether or not all files have been expanded.
 
optional_ptr< ClientContextcontext
 

Detailed Description

MultiFileList that takes a list of globs and resolves all of the globs lazily into files.

Member Function Documentation

◆ GetDisplayFileList()

vector< OpenFileInfo > duckdb::GlobMultiFileList::GetDisplayFileList ( optional_idx  max_files = optional_idx()) const
overridevirtual

Reimplemented from duckdb::MultiFileList.

◆ ExpandNextPath()

bool duckdb::GlobMultiFileList::ExpandNextPath ( ) const
overrideprotectedvirtual

Grabs the next path and expands it into Expanded paths: returns false if no more files to expand.

Implements duckdb::LazyMultiFileList.


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