Column Store
|
Stores metadata information of the data record. More...
#include <DataRecord.h>
Public Member Functions | |
DataRecordMetadata (std::vector< Column > columns) | |
std::vector< Column > & | getColumns () |
Get the Columns object. More... | |
Column & | operator[] (int i) |
Access Column by index. More... | |
Column & | getColumn (std::string name) |
Get the Column object by name. More... | |
Column & | getColumn (int i) |
Get the Column object by index. More... | |
Column & | operator[] (std::string name) |
Access column object by index. More... | |
void | print (DataRecord &record) |
Pretty print a single data record. More... | |
void | print () |
Print metadata. More... | |
Private Attributes | |
std::vector< Column > | columns |
std::unordered_map< std::string, int > | columnMap |
Map from column name to column index. More... | |
Stores metadata information of the data record.
Metadata information include names of columns, the types of the columns and also the column index of each column. Each DataGenerator source will provide this metadata. Actual values from individual data records can be extracted using this metadata
|
inline |
|
inline |
|
inline |
|
inline |
Get the Columns object.
|
inline |
|
inline |
|
inline |
Print metadata.
Prints column names and type
|
inline |
Pretty print a single data record.
Prints the column names and the record data in tabular form
record | to be printed |
|
private |
Map from column name to column index.
|
private |