8#ifndef DB_OUTPUT_TABLE_H
9#define DB_OUTPUT_TABLE_H
31 bool i_isSparse =
false,
32 double i_nullValue = FLT_MIN
42 const char * i_doubleFormat =
""
46 virtual size_t sizeOf(
void)
const noexcept = 0;
64 IDbExec * i_dbExec,
int i_subId,
int i_accId,
size_t i_size,
const double * i_valueArr
80 virtual size_t sizeOf(
void)
const noexcept = 0;
93 virtual void readTable(
IDbExec * i_dbExec,
bool i_isNanFill,
size_t i_size,
double * io_valueArr) = 0;
107 const char * i_expr =
""
122 const char * i_acc =
"",
123 const vector<int> & i_subIdArr = {}
database connection wrapper to execute sql commands.
Definition: dbExec.h:21
OpenM++ data library: public interface for db common structures.
OpenM++ data library: public interface.
openM++ namespace
Definition: log.h:32
output table accumulators reader public interface
Definition: dbOutputTable.h:113
static IOutputTableAccReader * create(int i_runId, const char *i_name, IDbExec *i_dbExec, const MetaHolder *i_metaStore, const char *i_acc="", const vector< int > &i_subIdArr={})
output table reader factory: create new reader table accumulators reader
Definition: outputTableReader.cpp:159
output table expressions reader public interface
Definition: dbOutputTable.h:98
static IOutputTableExprReader * create(int i_runId, const char *i_name, IDbExec *i_dbExec, const MetaHolder *i_metaStore, const char *i_expr="")
output table reader factory: create new reader table expressions reader
Definition: outputTableReader.cpp:148
output table reader public interface
Definition: dbOutputTable.h:76
virtual size_t sizeOf(void) const noexcept=0
return number of values to select from the table
virtual size_t totalSizeOf(void) const noexcept=0
return output table size: total number of values in the table
virtual void readTable(IDbExec *i_dbExec, bool i_isNanFill, size_t i_size, double *io_valueArr)=0
read output table values.
output table writer public interface
Definition: dbOutputTable.h:21
virtual int expressionCount(void) const noexcept=0
return number of output aggregated expressions
virtual void writeAllExpressions(IDbExec *i_dbExec)=0
write all output table values: aggregate sub-values using table expressions
virtual void digestOutput(IDbExec *i_dbExec)=0
calculate output table values digest and store only single copy of output values
virtual size_t sizeOf(void) const noexcept=0
return total number of values for each accumulator
virtual void writeAccumulator(IDbExec *i_dbExec, int i_subId, int i_accId, size_t i_size, const double *i_valueArr)=0
write output table accumulator values
static IOutputTableWriter * create(int i_runId, const char *i_name, IDbExec *i_dbExec, const MetaHolder *i_metaStore, int i_subCount, bool i_isSparse=false, double i_nullValue=FLT_MIN)
output table writer factory to write accumulators
Definition: outputTableWriter.cpp:83