sqlite-parquet-vtable/parquet/parquet_table.h

26 lines
578 B
C
Raw Permalink Normal View History

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