|
| | BaseFileReader (OpenFileInfo file_p) |
| |
| const vector< MultiFileColumnDefinition > & | GetColumns () const |
| |
| const string & | GetFileName () const |
| |
| virtual bool | UseCastMap () const |
| |
| virtual void | AddVirtualColumn (column_t virtual_column_id) |
| | Adds a virtual column to be projected at the end.
|
| |
| virtual DUCKDB_API shared_ptr< BaseUnionData > | GetUnionData (idx_t file_idx) |
| |
| virtual DUCKDB_API unique_ptr< BaseStatistics > | GetStatistics (ClientContext &context, const string &name) |
| | Get statistics for a specific column.
|
| |
| virtual DUCKDB_API void | PrepareReader (ClientContext &context, GlobalTableFunctionState &) |
| | Prepare reader for scanning.
|
| |
|
virtual bool | TryInitializeScan (ClientContext &context, GlobalTableFunctionState &gstate, LocalTableFunctionState &lstate)=0 |
| | Try to initialize a scan over the reader - this is done while the global lock is held.
|
| |
| virtual void | PrepareScan (ClientContext &context, GlobalTableFunctionState &gstate, LocalTableFunctionState &lstate) |
| | Prepare a scan - called after TryInitializeScan succeeds - this is done without any lock held.
|
| |
|
virtual AsyncResult | Scan (ClientContext &context, GlobalTableFunctionState &global_state, LocalTableFunctionState &local_state, DataChunk &chunk)=0 |
| | Scan a chunk from the read state.
|
| |
| virtual DUCKDB_API void | FinishFile (ClientContext &context, GlobalTableFunctionState &gstate) |
| | Finish scanning a given file.
|
| |
| virtual DUCKDB_API double | GetProgressInFile (ClientContext &context) |
| | Get progress within a given file.
|
| |
|
virtual string | GetReaderType () const =0 |
| |
| template<class TARGET > |
| TARGET & | Cast () |
| |
| template<class TARGET > |
| const TARGET & | Cast () const |
| |
| shared_ptr< BaseFileReader > | shared_from_this () |
| |
| shared_ptr< BaseFileReader const > | shared_from_this () const |
| |
Parent class of single-file readers - this must be inherited from for readers implementing the MultiFileReader interface