Column Store
SchemaExtractor.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iostream>
4 #include <pqxx/pqxx>
5 #include <string>
6 #include <unordered_map>
7 #include <vector>
8 
9 #include "interfaces/Column.h"
10 #include "SchemaMetaData.h"
11 #include "pugixml-1.10/src/pugixml.hpp"
12 
13 namespace Parser {
15  const char* xml_file_path;
16  pugi::xml_document xml_dom;
18 
19  void create_tables();
20  void create_projections();
21 
22  public:
23  SchemaExtractor(std::string xml_fpath);
25  };
26 }
Parser::SchemaExtractor::create_projections
void create_projections()
Definition: SchemaExtractor.cpp:86
SchemaMetaData.h
Parser::Table::set_table_name
void set_table_name(std::string table_n)
Definition: Table.h:33
Parser::SchemaMetaData
Definition: SchemaMetaData.h:14
Column.h
Column Metadata and Type information.
Parser
Definition: Column.h:6
Parser::Projection::add_join_table
void add_join_table(std::string from, std::string table, std::string to)
Definition: Projection.cpp:11
SchemaExtractor.h
Parser::Projection::set_projection_name
void set_projection_name(std::string projection_n)
Definition: Projection.h:54
Parser::DataType
Definition: Column.h:7
Parser::Projection
Definition: Projection.h:44
Parser::SchemaExtractor::create_tables
void create_tables()
Definition: SchemaExtractor.cpp:21
Parser::Projection::set_sort_key
void set_sort_key(std::string sk)
Definition: Projection.h:58
Parser::Table::add_column
void add_column(std::string column_name, std::string data_type, int size=0)
Definition: Table.cpp:5
Parser::SchemaExtractor::schema_meta_data
SchemaMetaData schema_meta_data
Definition: SchemaExtractor.h:17
Parser::SchemaExtractor::get_meta_data
SchemaMetaData get_meta_data()
Definition: SchemaExtractor.h:24
Parser::Projection::set_base_table
void set_base_table(std::string base_tab)
Definition: Projection.h:57
Parser::Table::add_foreign_key
void add_foreign_key(std::string from, std::string table, std::string to)
Definition: Table.cpp:22
Parser::Table::set_primary_key
void set_primary_key(std::string pk)
Definition: Table.h:34
Parser::Projection::add_column
void add_column(std::string name, std::string table, std::string column_name, std::string encoding, DataType data_type)
Definition: Projection.cpp:5
Parser::Table
Definition: Table.h:25
Parser::SchemaExtractor
Definition: SchemaExtractor.h:14
Parser::foreign_key
Definition: ForeignKey.h:6
Parser::SchemaExtractor::xml_dom
pugi::xml_document xml_dom
Definition: SchemaExtractor.h:16
Parser::Projection::add_join_index
void add_join_index(std::string from, std::string other_projection, std::string to)
Definition: Projection.cpp:16
Parser::SchemaExtractor::SchemaExtractor
SchemaExtractor(std::string xml_fpath)
Definition: SchemaExtractor.cpp:5
Parser::SchemaExtractor::xml_file_path
const char * xml_file_path
Definition: SchemaExtractor.h:15