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