Go to the documentation of this file.
172 columnIndex =
metadata[columnName].index;
189 return std::any_cast<float>(
value) ==
192 return std::any_cast<std::string>(
value) ==
196 throw "Unknown DataType";
221 dataType = (*metadata)[columnName].type;
235 return std::any_cast<float>(
value) >
238 return std::any_cast<std::string>(
value) >
242 throw "Unknown DataType";
RecordValidator validator1
Definition: Validators.h:126
std::any value
Definition: Validators.h:206
RecordValidator validator2
Definition: Validators.h:97
Base RecordValidator Interface.
Definition: Validators.h:16
Inverts RecordValidator.
Definition: Validators.h:70
RecordValidator condition
Definition: Validators.h:71
std::shared_ptr< RecordValidatorInterface > RecordValidator
Shared Pointer for RecordValidator Interface.
Definition: Validators.h:39
DataType
Different datatypes supported by this project.
Definition: Column.h:16
DataType dataType
Definition: Validators.h:158
RecordValidator validator2
Definition: Validators.h:127
Definition: ColStoreDataGenerator.h:22
Logical AND RecordValidator.
Definition: Validators.h:95
RecordValidator validator1
Definition: Validators.h:96
bool validate(DataRecord &record)
Applies logical OR condition to validator1 and validator2.
Definition: Validators.h:146
OrRecordValidator(RecordValidator validator1, RecordValidator validator2)
Construct a new Or Record Validator object.
Definition: Validators.h:136
bool validate(DataRecord &record)
Compares the equality of the column.
Definition: Validators.h:185
bool validate(DataRecord &record)
Applies logical AND on validator1 and validator2.
Definition: Validators.h:116
std::shared_ptr< DataRecordMetadata > Metadata
Shared pointer to DataRecordMetadata.
Definition: DataRecord.h:208
DataType dataType
Definition: Validators.h:207
Stores a row of data.
Definition: DataRecord.h:64
Checks equality of a data field.
Definition: Validators.h:155
NotRecordValidator(RecordValidator condition)
Construct a new Not Record Validator object.
Definition: Validators.h:79
virtual ~RecordValidatorInterface()
Destroy the Record Validator Interface object.
Definition: Validators.h:31
int columnIndex
Definition: Validators.h:205
int columnIndex
Definition: Validators.h:156
Logical OR RecordValidator.
Definition: Validators.h:125
std::any value
Definition: Validators.h:157
LessThanRecordValidator(std::string columnName, std::any value, Metadata _metadata)
Construct a new Less Than Record Validator object.
Definition: Validators.h:217
bool validate(DataRecord &record)
Compares the value with given value.
Definition: Validators.h:231
EqualRecordValidator(std::string columnName, std::any value, Metadata _metadata)
Construct a new Equal Record Validator object.
Definition: Validators.h:168
AndRecordValidator(RecordValidator validator1, RecordValidator validator2)
Construct a new And Record Validator object.
Definition: Validators.h:106
virtual bool validate(DataRecord &record)
Validates record as per query conditions.
Definition: Validators.h:25
bool validate(DataRecord &record)
inverts the value of the condition
Definition: Validators.h:88
Checks if value of a field is less than given value.
Definition: Validators.h:204