| 1 | //===----------------------------------------------------------------------===// |
|---|---|
| 2 | // DuckDB |
| 3 | // |
| 4 | // duckdb/storage/checkpoint/table_data_reader.hpp |
| 5 | // |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #pragma once |
| 10 | |
| 11 | #include "duckdb/storage/checkpoint_manager.hpp" |
| 12 | |
| 13 | namespace duckdb { |
| 14 | struct BoundCreateTableInfo; |
| 15 | |
| 16 | //! The table data reader is responsible for reading the data of a table from the block manager |
| 17 | class TableDataReader { |
| 18 | public: |
| 19 | TableDataReader(CheckpointManager &manager, MetaBlockReader &reader, BoundCreateTableInfo &info); |
| 20 | |
| 21 | void ReadTableData(); |
| 22 | |
| 23 | private: |
| 24 | CheckpointManager &manager; |
| 25 | MetaBlockReader &reader; |
| 26 | BoundCreateTableInfo &info; |
| 27 | }; |
| 28 | |
| 29 | } // namespace duckdb |
| 30 |