Go to the documentation of this file.
5 #include <unordered_map>
22 indices.reserve(columns.size());
23 types.reserve(columns.size());
24 for (
auto &c : columns) {
25 indices.push_back(metadata->getColumn(c).index);
26 types.push_back(metadata->getColumn(c));
38 type = metadata->getColumn(name);
47 std::vector<ColumnStore::DataValue>
values;
GroupByManager(std::vector< std::string > &columns, Metadata metadata)
Definition: GroupByManager.h:21
const DataValue & operator[](int index) const
Definition: GroupByManager.h:53
DataType
Different datatypes supported by this project.
Definition: Column.h:16
DataType type
Definition: GroupByManager.h:36
bool operator==(const GroupByValue &value) const
Definition: GroupByManager.h:49
JoinValue processValue(DataValue &value)
Definition: GroupByManager.cpp:32
ColumnStore::DataValue value
Definition: GroupByManager.h:57
const T as() const
Extracts value by type.
Definition: DataRecord.h:40
Data Generator for GenericQueryBuilder.
Definition: GenericGenerator.cpp:11
GroupByValue processRecord(DataRecord &record)
Definition: GroupByManager.cpp:67
std::shared_ptr< DataRecordMetadata > Metadata
Shared pointer to DataRecordMetadata.
Definition: DataRecord.h:208
std::vector< int > indices
Definition: GroupByManager.h:19
JoinValueManager * manager
Definition: GroupByManager.h:58
std::vector< ColumnStore::DataValue > values
Definition: GroupByManager.h:47
Stores a row of data.
Definition: DataRecord.h:64
size_t operator()(const GroupByValue &value) const
Definition: GroupByManager.h:70
GroupByManager * manager
Definition: GroupByManager.h:48
Definition: GroupByManager.h:46
std::vector< DataType > types
Definition: GroupByManager.h:20
Definition: GroupByManager.h:56
RecordValidator Interfaces and Implementations for Query Processing.
Definition: GroupByManager.h:35
Definition: GroupByManager.h:18
Definition: GroupByManager.h:75
size_t operator()(const JoinValue &value) const
Definition: GroupByManager.h:76
Data Generator Interface.
size_t hash(const JoinValue &value) const
Definition: GroupByManager.cpp:19
Generic Condition Builder.
Implementation of a single data element.
Definition: DataRecord.h:28
JoinValueManager(std::string name, Metadata metadata)
Definition: GroupByManager.h:37
Definition: GroupByManager.h:68
bool operator==(const JoinValue &value) const
Definition: GroupByManager.h:61
bool compare(const GroupByValue &value1, const GroupByValue &value2) const
Definition: GroupByManager.cpp:36
size_t hash(const GroupByValue &value) const
Definition: GroupByManager.cpp:52
JoinValue(ColumnStore::DataValue value, JoinValueManager *manager)
Definition: GroupByManager.h:59
bool compare(const JoinValue &value1, const JoinValue &value2) const
Definition: GroupByManager.cpp:5