Column Store
CSVDataGenerator.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <queue>
4 #include <vector>
5 
6 #include "CSVparser.hpp"
8 
44 
45 namespace CSV {
48  std::queue<DataRecord> data;
49 
50  public:
58  CSVDataSource(std::string filename);
59 
65  DataRecord next();
66 
73  bool hasNext();
74 };
75 
76 } // namespace CSV
ColumnStore::ColumnStoreData::getString
std::string getString(int i, int length)
Definition: ProjectionData.h:60
Postgres::PostgreSQLDataSource::hasNext
bool hasNext()
Definition: PostgreSQLDataGenerator.h:204
ColumnStore::ColumnStoreData::setString
void setString(int i, std::string &string)
Definition: ProjectionData.h:72
ColumnStore::DataType
DataType
Different datatypes supported by this project.
Definition: Column.h:16
ColumnStore::DataRecordMetadata
Stores metadata information of the data record.
Definition: DataRecord.h:88
ColumnStore::ColumnStoreData::read
void read(std::istream &input)
Definition: ProjectionData.h:97
ColumnStore::ColumnStoreData::getFloat
float getFloat(int i)
Definition: ProjectionData.h:54
ColumnStore
Definition: ColStoreDataGenerator.h:22
Postgres::PostgreSQLDataSource::next
DataRecord next()
Definition: PostgreSQLDataGenerator.h:137
CSV
CSV Data Source generator.
Definition: CSVDataGenerator.cpp:50
ColumnStore::ColumnStoreData::get
DataRecord get(std::vector< Parser::Column > &columns)
Definition: ProjectionData.h:101
main
int main()
Definition: ProjectionDataTest.cpp:10
ColumnStore::Column
Struct which maintains metadata of a single column.
Definition: Column.h:22
ColumnStore::Metadata
std::shared_ptr< DataRecordMetadata > Metadata
Shared pointer to DataRecordMetadata.
Definition: DataRecord.h:208
CSV::CSVDataSource::hasNext
bool hasNext()
Checks if a record is available.
Definition: CSVDataGenerator.cpp:118
ProjectionData.h
ColumnStore::DataRecord
Stores a row of data.
Definition: DataRecord.h:64
CSV::CSVDataSource::data
std::queue< DataRecord > data
queue of data records for the generator
Definition: CSVDataGenerator.h:48
ColStoreDataGenerator.h
ColumnStore::ColumnStoreData::setFloat
void setFloat(int i, float value)
Definition: ProjectionData.h:64
CSV::CSVDataSource::next
DataRecord next()
Generates the next record.
Definition: CSVDataGenerator.cpp:106
ColumnStore::ColumnStoreData::getInt
int getInt(int i)
Definition: ProjectionData.h:58
ColumnStore::ColumnStoreData::write
void write(std::ostream &output)
Definition: ProjectionData.h:99
ColumnStore::ColumnStoreData::set
void set(DataRecord &record, std::vector< Parser::Column > &columns)
Definition: ProjectionData.h:123
DataGeneratorInterface.h
Data Generator Interface.
ColumnStore::ColumnStoreData
Definition: ProjectionData.h:32
ColumnStore::DataGeneratorInterface::metadata
Metadata metadata
metadata for processing queries
Definition: DataGeneratorInterface.h:27
trim
std::string trim(const std::string &str, const std::string &whitespace=" \t\r\n")
Helper function to trim trailing whitespace.
Definition: CSVDataGenerator.cpp:15
ColumnStore::MetadataManager::getInstance
static std::shared_ptr< MetadataManager > getInstance(std::string column_store_path)
Definition: ProjectionData.h:160
PostgreSQLMetaData.h
ColumnStore::ColStoreDataSource
Definition: ColStoreDataGenerator.h:23
Parser::Column
Definition: Column.h:38
CSVDataGenerator.h
Data Generator for CSV files.
ColumnStore::DataValue
Implementation of a single data element.
Definition: DataRecord.h:28
ColumnStore::ColumnStoreData::setInt
void setInt(int i, int value)
Definition: ProjectionData.h:68
Postgres::PostgreSQLDataSource
Definition: PostgreSQLDataGenerator.h:24
Postgres::PostgreSQLMetaData
Definition: PostgreSQLMetaData.h:13
CSV::CSVDataSource::CSVDataSource
CSVDataSource(std::string filename)
Construct a new CSVDataSource object.
Definition: CSVDataGenerator.cpp:58
CSV::CSVDataSource
Definition: CSVDataGenerator.h:46
PostgreSQLDataGenerator.h
ColumnStore::DataGeneratorInterface
Interface for relational data sources.
Definition: DataGeneratorInterface.h:24
ColumnStore::DataGeneratorInterface::print
void print(int recordCount=-1)
Print the data.
Definition: DataGeneratorInterface.cpp:46