Column Store
DataGeneratorInterface.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <vector>
5 
6 #include "../Fort/fort.hpp"
7 #include "Column.h"
8 #include "DataRecord.h"
9 
14 namespace ColumnStore {
25  protected:
28 
29  public:
33  virtual DataRecord next() = 0;
34 
38  virtual bool hasNext() = 0;
39 
45  Metadata getMetadata() const;
46 
53  virtual std::vector<DataRecord> nextBatch(int batchSize);
54 
60  void print(int recordCount = -1);
61 
67 };
68 
73 typedef std::shared_ptr<DataGeneratorInterface> DataSource;
74 
75 }; // namespace ColumnStore
ColumnStore::DataGeneratorInterface::hasNext
virtual bool hasNext()=0
ColumnStore
Definition: ColStoreDataGenerator.h:22
ColumnStore::DataGeneratorInterface::next
virtual DataRecord next()=0
ColumnStore::DataGeneratorInterface::~DataGeneratorInterface
virtual ~DataGeneratorInterface()
Destroy the Data Generator Interface object.
Definition: DataGeneratorInterface.h:66
ColumnStore::DataType::STRING
@ STRING
ColumnStore::Metadata
std::shared_ptr< DataRecordMetadata > Metadata
Shared pointer to DataRecordMetadata.
Definition: DataRecord.h:208
ColumnStore::DataSource
std::shared_ptr< DataGeneratorInterface > DataSource
Shared pointer to the DataGeneratorInterface.
Definition: DataGeneratorInterface.h:73
ColumnStore::DataRecord
Stores a row of data.
Definition: DataRecord.h:64
DataRecord.h
Data storage structures.
ColumnStore::DataGeneratorInterface::nextBatch
virtual std::vector< DataRecord > nextBatch(int batchSize)
Helper function to return batch of records.
Definition: DataGeneratorInterface.cpp:31
ColumnStore::DataGeneratorInterface::getMetadata
Metadata getMetadata() const
Interface for relational data sources.
Definition: DataGeneratorInterface.cpp:23
ColumnStore::DataType::INT
@ INT
Column.h
DataGeneratorInterface.h
Data Generator Interface.
ColumnStore::DataGeneratorInterface::metadata
Metadata metadata
metadata for processing queries
Definition: DataGeneratorInterface.h:27
ColumnStore::DataType::FLOAT
@ FLOAT
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