38 #ifndef DATABASESERVER_DATAACCESS_H 39 #define DATABASESERVER_DATAACCESS_H 41 #include "src/database-server/data-access/idataaccess.h" 42 #include "src/database-server/data-source/idatasource.h" 104 std::vector<VarValue>* out_vals, size_t max_len)
noexcept;
VarValue(Variable &&variable, double &&val, std::uint64_t &&ts)
Definition: varvalue.cc:45
Err compress(const std::vector< VarValue > &in_vals, std::vector< VarValue > *out_vals, size_t max_len) noexcept
compress a dumy compression algorithm
Definition: dataaccess.cc:54
Definition: variable.h:44
virtual std::tuple< std::vector< VarValue >, Err > fetch_variable_values(const std::string &var_name, const std::chrono::system_clock::time_point &start_date, const std::chrono::system_clock::time_point &end_date, size_t max_len=std::numeric_limits< size_t >::infinity()) noexcept=0
fetch_variable_values get values for a variable in a date range.
Err add_variable(const Variable &var) noexceptoverride
add_variable add a new variable.
Definition: dataaccess.cc:45
Err add_variable_value(const VarValue &var) noexceptoverride
add_variable_value add a new value for a given variable.
Definition: dataaccess.cc:49
IDataSource * ds_
Definition: dataaccess.h:107
virtual Err count_variable_values(const std::string &var_name, const std::chrono::system_clock::time_point &start_date, const std::chrono::system_clock::time_point &end_date, const std::function< void(size_t count)> &send_count) noexcept=0
count_variable_values count all values of a given variable
DataAccess(IDataSource *ds) noexcept
Definition: dataaccess.cc:43
Err
Definition: idataaccess.h:57
std::tuple< std::vector< VarValue >, Err > fetch_variable_values(const std::string &var_name, const std::chrono::system_clock::time_point &start_date, const std::chrono::system_clock::time_point &end_date, size_t max_len) noexceptoverride
fetch_variable_values get values for a given variable in a period.
Definition: dataaccess.cc:132