2018-03-03 20:44:01 +00:00
|
|
|
#ifndef PARQUET_TABLE_H
|
|
|
|
#define PARQUET_TABLE_H
|
|
|
|
|
2018-03-08 18:21:33 +00:00
|
|
|
#include <vector>
|
2018-03-03 20:44:01 +00:00
|
|
|
#include <string>
|
2018-03-15 23:57:38 +00:00
|
|
|
#include "parquet/api/reader.h"
|
2018-03-03 20:44:01 +00:00
|
|
|
|
|
|
|
class ParquetTable {
|
2018-03-25 03:51:15 +00:00
|
|
|
std::string file;
|
|
|
|
std::string tableName;
|
2018-03-08 18:21:33 +00:00
|
|
|
std::vector<std::string> columnNames;
|
2018-03-15 23:57:38 +00:00
|
|
|
std::shared_ptr<parquet::FileMetaData> metadata;
|
|
|
|
|
2018-03-08 18:21:33 +00:00
|
|
|
|
2018-03-03 20:44:01 +00:00
|
|
|
public:
|
2018-03-25 03:51:15 +00:00
|
|
|
ParquetTable(std::string file, std::string tableName);
|
2018-03-03 20:44:01 +00:00
|
|
|
std::string CreateStatement();
|
2018-03-08 18:21:33 +00:00
|
|
|
std::string columnName(int idx);
|
2018-06-23 23:10:23 +00:00
|
|
|
unsigned int getNumColumns();
|
2018-03-15 23:57:38 +00:00
|
|
|
std::shared_ptr<parquet::FileMetaData> getMetadata();
|
2018-03-25 03:51:15 +00:00
|
|
|
const std::string& getFile();
|
|
|
|
const std::string& getTableName();
|
2018-03-03 20:44:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|