1
0
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:
Colin Dellow
2018-03-15 19:57:38 -04:00
parent 769060dbcb
commit 92ba5f94e0
4 changed files with 20 additions and 9 deletions

View File

@@ -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