1 #ifndef STATISTICS_DB_H
2 #define STATISTICS_DB_H
54 bool execDB (std::string cmdString);
76 std::string created_jobId,
78 std::string className,
117 std::string transformationType,
129 std::vector<std::shared_ptr<TransformedSet>>
143 long getLatestDataId (std::pair<std::string, std::string> databaseAndSetName);
157 std::string
quoteStr(std::string& s);
165 const std::string& oldStr,
166 const std::string& newStr);
bool createDataTransformation(long input_data_id, long output_data_id, int num_partitions, int num_nodes, std::string transformationType, std::string tcap, Handle< Vector< Handle< Computation >>> computations, long &id)
long getLatestId(std::string tableName)
long getLatestTransformationId()
StatisticsDB(ConfigurationPtr conf)
bool updateDataForSize(long id, size_t size)
shared_ptr< Configuration > ConfigurationPtr
std::vector< std::shared_ptr< TransformedSet > > getTransformedSets(std::pair< std::string, std::string > databaseAndSetName)
sqlite3 * statisticsDBHandler
bool createData(std::string databaseName, std::string setName, std::string created_jobId, std::string setType, std::string className, int typeId, size_t pageSize, long &id)
long getLatestDataId(std::pair< std::string, std::string > databaseAndSetName)
std::string quoteStr(std::string &s)
bool updateDataForRemoval(long id)
void replaceStr(std::string &str, const std::string &oldStr, const std::string &newStr)
bool execDB(std::string cmdString)