![]() |
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.
|
Struct holding information over a CSV File we will scan. More...


Public Member Functions | |
| CSVFileScan (ClientContext &context, const OpenFileInfo &file, CSVReaderOptions options, const MultiFileOptions &file_options, const vector< string > &names, const vector< LogicalType > &types, CSVSchema &file_schema, bool per_file_single_threaded, shared_ptr< CSVBufferManager > buffer_manager=nullptr, bool fixed_schema=false) | |
| CSVFileScan (ClientContext &context, const OpenFileInfo &file, const CSVReaderOptions &options, const MultiFileOptions &file_options) | |
| void | SetStart () |
| void | SetNamesAndTypes (const vector< string > &names, const vector< LogicalType > &types) |
| string | GetReaderType () const override |
| bool | UseCastMap () const override |
| shared_ptr< BaseUnionData > | GetUnionData (idx_t file_idx) override |
| void | PrepareReader (ClientContext &context, GlobalTableFunctionState &) override |
| Prepare reader for scanning. | |
| bool | TryInitializeScan (ClientContext &context, GlobalTableFunctionState &gstate, LocalTableFunctionState &lstate) override |
| Try to initialize a scan over the reader - this is done while the global lock is held. | |
| AsyncResult | Scan (ClientContext &context, GlobalTableFunctionState &global_state, LocalTableFunctionState &local_state, DataChunk &chunk) override |
| Scan a chunk from the read state. | |
| void | FinishFile (ClientContext &context, GlobalTableFunctionState &gstate_p) override |
| Finish scanning a given file. | |
| double | GetProgressInFile (ClientContext &context) override |
| Get progress within a given file. | |
| idx_t | GetFileIndex () const |
| const vector< string > & | GetNames () |
| const vector< LogicalType > & | GetTypes () |
| void | InitializeProjection () |
| void | Finish () |
| void | InitializeFileNamesTypes () |
| Initialize the actual names and types to be scanned from the file. | |
| Public Member Functions inherited from duckdb::BaseFileReader | |
| BaseFileReader (OpenFileInfo file_p) | |
| const vector< MultiFileColumnDefinition > & | GetColumns () const |
| const string & | GetFileName () const |
| virtual void | AddVirtualColumn (column_t virtual_column_id) |
| Adds a virtual column to be projected at the end. | |
| virtual DUCKDB_API unique_ptr< BaseStatistics > | GetStatistics (ClientContext &context, const string &name) |
| Get statistics for a specific column. | |
| virtual void | PrepareScan (ClientContext &context, GlobalTableFunctionState &gstate, LocalTableFunctionState &lstate) |
| Prepare a scan - called after TryInitializeScan succeeds - this is done without any lock held. | |
| template<class TARGET> | |
| TARGET & | Cast () |
| template<class TARGET> | |
| const TARGET & | Cast () const |
| Public Member Functions inherited from duckdb::enable_shared_from_this< BaseFileReader > | |
| shared_ptr< BaseFileReader > | shared_from_this () |
Public Attributes | |
| shared_ptr< CSVBufferManager > | buffer_manager |
| Buffer Manager for the CSV File. | |
| shared_ptr< CSVStateMachine > | state_machine |
| State Machine for this file. | |
| atomic< idx_t > | bytes_read {0} |
| How many bytes were read up to this point. | |
| idx_t | file_size |
| Size of this file. | |
| shared_ptr< CSVErrorHandler > | error_handler |
| Line Info used in error messages. | |
| bool | on_disk_file = true |
| Whether or not this is an on-disk file. | |
| vector< LogicalType > | file_types |
| set< idx_t > | projected_columns |
| Variables to handle projection pushdown. | |
| std::vector< std::pair< idx_t, idx_t > > | projection_ids |
| CSVReaderOptions | options |
| Options for this CSV Reader. | |
| CSVIterator | start_iterator |
| CSVValidator | validator |
| idx_t | skipped_rows = 0 |
| atomic< idx_t > | started_tasks {1} |
| atomic< idx_t > | finished_tasks {0} |
| Public Attributes inherited from duckdb::BaseFileReader | |
| OpenFileInfo | file |
| The file we are reading. | |
| optional_idx | file_list_idx |
| (Optionally) The file index (generated by the multi file reader) | |
| vector< MultiFileColumnDefinition > | columns |
| The set of columns for the current file. | |
| MultiFileLocalColumnIds< MultiFileLocalColumnId > | column_ids |
| The column ids to read from the file. | |
| vector< ColumnIndex > | column_indexes |
| The column indexes to read from the file. | |
| unique_ptr< TableFilterSet > | filters |
| The set of table filters (adjusted to local indexes). | |
| unordered_map< column_t, unique_ptr< Expression > > | expression_map |
| unordered_map< column_t, LogicalType > | cast_map |
| The final types for various expressions - this is ONLY used if UseCastMap() is explicitly enabled. | |
| unique_ptr< DeleteFilter > | deletion_filter |
| (Optionally) The deletion filter (generated by the multi file reader) | |
Private Attributes | |
| vector< string > | names |
| vector< LogicalType > | types |
Additional Inherited Members | |
| Protected Member Functions inherited from duckdb::enable_shared_from_this< BaseFileReader > | |
| enable_shared_from_this & | operator= (enable_shared_from_this const &) noexcept |
Struct holding information over a CSV File we will scan.
| duckdb::CSVFileScan::CSVFileScan | ( | ClientContext & | context, |
| const OpenFileInfo & | file, | ||
| CSVReaderOptions | options, | ||
| const MultiFileOptions & | file_options, | ||
| const vector< string > & | names, | ||
| const vector< LogicalType > & | types, | ||
| CSVSchema & | file_schema, | ||
| bool | per_file_single_threaded, | ||
| shared_ptr< CSVBufferManager > | buffer_manager = nullptr, | ||
| bool | fixed_schema = false ) |
Constructor for new CSV Files, we must initialize the buffer manager and the state machine Path to this file

| duckdb::CSVFileScan::CSVFileScan | ( | ClientContext & | context, |
| const OpenFileInfo & | file, | ||
| const CSVReaderOptions & | options, | ||
| const MultiFileOptions & | file_options ) |
| void duckdb::CSVFileScan::SetStart | ( | ) |
| void duckdb::CSVFileScan::SetNamesAndTypes | ( | const vector< string > & | names, |
| const vector< LogicalType > & | types ) |
|
inlineoverridevirtual |
Implements duckdb::BaseFileReader.
|
inlineoverridevirtual |
Whether or not to push casts into the cast map
Reimplemented from duckdb::BaseFileReader.
|
overridevirtual |
Reimplemented from duckdb::BaseFileReader.
|
overridevirtual |
Prepare reader for scanning.
Reimplemented from duckdb::BaseFileReader.

|
overridevirtual |
Try to initialize a scan over the reader - this is done while the global lock is held.
Implements duckdb::BaseFileReader.
|
overridevirtual |
Scan a chunk from the read state.
Implements duckdb::BaseFileReader.
|
overridevirtual |
Finish scanning a given file.
Reimplemented from duckdb::BaseFileReader.
|
overridevirtual |
Get progress within a given file.
Reimplemented from duckdb::BaseFileReader.
|
inline |
| const vector< string > & duckdb::CSVFileScan::GetNames | ( | ) |
| const vector< LogicalType > & duckdb::CSVFileScan::GetTypes | ( | ) |
| void duckdb::CSVFileScan::InitializeProjection | ( | ) |
| void duckdb::CSVFileScan::Finish | ( | ) |
| void duckdb::CSVFileScan::InitializeFileNamesTypes | ( | ) |
Initialize the actual names and types to be scanned from the file.

| atomic<idx_t> duckdb::CSVFileScan::bytes_read {0} |
How many bytes were read up to this point.
| atomic<idx_t> duckdb::CSVFileScan::started_tasks {1} |
The started tasks and finished tasks allow us to track if all reads of the CSV file have completed Note that the "started_tasks" starts at one - this is so we can track when the scheduling of all tasks for this file has completed When the scheduling is finished we increment finished_tasks by one as well
| atomic<idx_t> duckdb::CSVFileScan::finished_tasks {0} |