Go to the documentation of this file.
5 #include <unordered_map>
50 virtual std::shared_ptr<Aggregator>
clone() = 0;
73 throw std::runtime_error(
"Unknown DataType");
100 throw std::runtime_error(
"Unknown DataType");
139 throw std::runtime_error(
"Unknown DataType");
163 throw std::runtime_error(
"Unknown DataType");
std::shared_ptr< Aggregator > AggregatorQuery
Shared pointer to Query Structure.
Definition: AggregatorQuery.h:57
std::string aggregatorType()
Definition: AggregatorQuery.h:114
AggregatorQuery clone()
Definition: AggregatorQuery.h:144
std::string name
Definition: AggregatorQuery.h:27
DataType
Different datatypes supported by this project.
Definition: Column.h:16
double sum
Definition: AggregatorQuery.h:61
Definition: ColStoreDataGenerator.h:22
float getValue()
Definition: AggregatorQuery.h:122
Aggregator(std::string name)
Definition: AggregatorQuery.h:32
Definition: AggregatorQuery.h:110
Definition: AggregatorQuery.h:59
MinAggregator(std::string name)
Definition: AggregatorQuery.h:152
virtual ~Aggregator()
Destroy the Condition Query object.
Definition: AggregatorQuery.h:46
float getValue()
Definition: AggregatorQuery.h:81
int count
Definition: AggregatorQuery.h:111
Definition: AggregatorQuery.h:125
std::shared_ptr< DataRecordMetadata > Metadata
Shared pointer to DataRecordMetadata.
Definition: DataRecord.h:208
CountAggregator(std::string name)
Definition: AggregatorQuery.h:112
void addRecord(DataRecord &record)
Definition: AggregatorQuery.h:67
void addRecord(DataRecord &record)
Definition: AggregatorQuery.h:133
int count
Definition: AggregatorQuery.h:60
float getValue()
Definition: AggregatorQuery.h:107
Stores a row of data.
Definition: DataRecord.h:64
std::string aggregatorType()
Definition: AggregatorQuery.h:131
std::string aggregatorType()
Definition: AggregatorQuery.h:65
void initialize(Metadata metadata)
Definition: AggregatorQuery.h:34
void addRecord(DataRecord &record)
Definition: AggregatorQuery.h:94
AggregatorQuery clone()
Definition: AggregatorQuery.h:103
AggregatorQuery clone()
Definition: AggregatorQuery.h:77
double sum
Definition: AggregatorQuery.h:88
float mx
Definition: AggregatorQuery.h:126
void addRecord(DataRecord &record)
Definition: AggregatorQuery.h:116
MaxAggregator(std::string name)
Definition: AggregatorQuery.h:128
Definition: AggregatorQuery.h:149
std::string aggregatorType()
Definition: AggregatorQuery.h:92
AggregatorQuery clone()
Definition: AggregatorQuery.h:118
Data Generator Interface.
virtual std::string aggregatorType()=0
float getValue()
Definition: AggregatorQuery.h:142
void addRecord(DataRecord &record)
Definition: AggregatorQuery.h:157
std::string getColumnName()
Definition: AggregatorQuery.h:48
virtual float getValue()=0
Base Condition Query Structure.
Definition: AggregatorQuery.h:26
float mn
Definition: AggregatorQuery.h:150
AverageAggregator(std::string name)
Definition: AggregatorQuery.h:63
DataType type
Definition: AggregatorQuery.h:30
virtual void addRecord(DataRecord &record)=0
int columnIndex
Definition: AggregatorQuery.h:29
Definition: AggregatorQuery.h:87
SumAggregator(std::string name)
Definition: AggregatorQuery.h:90
virtual std::shared_ptr< Aggregator > clone()=0
AggregatorQuery clone()
Definition: AggregatorQuery.h:168
std::string aggregatorType()
Definition: AggregatorQuery.h:155
float getValue()
Definition: AggregatorQuery.h:166