mirror of
https://github.com/cldellow/sqlite-parquet-vtable.git
synced 2025-09-14 22:39:59 +00:00
reuse FileMetaData
For the statscan dataset, parsing the file metadata takes ~30-40ms, so stash it away for future re-use.
This commit is contained in:
@@ -3,15 +3,19 @@
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "parquet/api/reader.h"
|
||||
|
||||
class ParquetTable {
|
||||
std::vector<std::string> columnNames;
|
||||
std::shared_ptr<parquet::FileMetaData> metadata;
|
||||
|
||||
|
||||
public:
|
||||
ParquetTable(std::string file);
|
||||
std::string CreateStatement();
|
||||
std::string file;
|
||||
std::string columnName(int idx);
|
||||
std::shared_ptr<parquet::FileMetaData> getMetadata();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user