Column Store
Public Member Functions | Private Attributes | List of all members
CSV::CSVDataSource Class Reference

#include <CSVDataGenerator.h>

Inheritance diagram for CSV::CSVDataSource:
Inheritance graph
Collaboration diagram for CSV::CSVDataSource:
Collaboration graph

Public Member Functions

 CSVDataSource (std::string filename)
 Construct a new CSVDataSource object. More...
 
DataRecord next ()
 Generates the next record. More...
 
bool hasNext ()
 Checks if a record is available. More...
 
- Public Member Functions inherited from ColumnStore::DataGeneratorInterface
Metadata getMetadata () const
 Interface for relational data sources. More...
 
virtual std::vector< DataRecordnextBatch (int batchSize)
 Helper function to return batch of records. More...
 
void print (int recordCount=-1)
 Print the data. More...
 
virtual ~DataGeneratorInterface ()
 Destroy the Data Generator Interface object. More...
 

Private Attributes

std::queue< DataRecorddata
 queue of data records for the generator More...
 

Additional Inherited Members

- Protected Attributes inherited from ColumnStore::DataGeneratorInterface
Metadata metadata
 metadata for processing queries More...
 

Constructor & Destructor Documentation

◆ CSVDataSource()

CSV::CSVDataSource::CSVDataSource ( std::string  filename)

Construct a new CSVDataSource object.

Constructor parses CSV data, generates all the data records and stores it in a queue for data record generation

Parameters
filenameof the CSV file
Here is the call graph for this function:

Member Function Documentation

◆ hasNext()

bool CSV::CSVDataSource::hasNext ( )
virtual

Checks if a record is available.

Returns
true
false

Implements ColumnStore::DataGeneratorInterface.

◆ next()

DataRecord CSV::CSVDataSource::next ( )
virtual

Generates the next record.

Returns
DataRecord

Implements ColumnStore::DataGeneratorInterface.

Member Data Documentation

◆ data

std::queue<DataRecord> CSV::CSVDataSource::data
private

queue of data records for the generator


The documentation for this class was generated from the following files: