13 read_file(table_data, filename.c_str(), -1);
31 read_file(query_data, filename.c_str(), policy->GetNumOfQueries());
QueryData LoadQueryDataFromCsv(const std::string &filename, const std::shared_ptr< const ExecutionPolicy > &policy)
Reads query from a CSV file and returns in QueryData format.
This is the top-level namespace of the project.
std::vector< std::vector< int > > QueryData
Raw query data format used for building the queries.
std::shared_ptr< genie::table::inv_table > LoadTableFromBinary(const std::string &filename)
Reads data from a binary file and returns pre-built table.
void SaveTableToBinary(const std::string &filename, const std::shared_ptr< const genie::table::inv_table > &table)
Save inverted table to a binary file.
std::vector< std::vector< int > > TableData
Raw table data format used for building the table.
std::shared_ptr< genie::table::inv_table > LoadTable(const std::string &filename)
TableData LoadTableDataFromCsv(const std::string &filename)
Reads data from a CSV file and returns in TableData format.
void read_file(std::vector< std::vector< int > > &dest, const char *fname, int num)
void SaveTable(const std::string &filename, const std::shared_ptr< const genie::table::inv_table > &table)