The test bench class to feed data. More...

Public Member Functions | |
| void | setDataLoader (std::string tag, ConfigMapPtr globalCfg) |
| load a dataset according to the tag More... | |
| size_t | sizeOfS () |
| get the size of loaded s tuple More... | |
| size_t | sizeOfR () |
| get the size of loaded r tuple More... | |
| void | setDataSet (std::vector< TrackTuplePtr > _r, std::vector< TrackTuplePtr > _s) |
| set the dataset to feed More... | |
| bool | setOperator (AbstractOperatorPtr op, ConfigMapPtr cfg) |
| set the operator to test More... | |
| size_t | inOrderTest (bool additionalSort) |
| test the operator under in order arrival More... | |
| size_t | OoOTest (bool additionalSort) |
| test the operator under OoO arrival More... | |
| void | logRTuples (bool skipZero=false) |
| print the rTuples to logging system More... | |
| bool | saveRTuplesToFile (string fname, bool skipZero=false) |
| save the rTuples to a file More... | |
| bool | saveSTuplesToFile (string fname, bool skipZero=false) |
| save the sTuples to a file More... | |
| double | getAvgLatency () |
| to compute average latency after run a test More... | |
| double | getThroughput () |
| to compute the throughput after run a test More... | |
| double | getLatencyPercentage (double fraction) |
| to compute the latency t such that fraction of latency is below t More... | |
| ConfigMapPtr | getTimeBreakDown () |
| get the break down information of processing time from the join operator tested More... | |
Public Attributes | |
| std::vector< TrackTuplePtr > | rTuple |
| std::vector< TrackTuplePtr > | sTuple |
| AbstractOperatorPtr | testOp = nullptr |
| ConfigMapPtr | opConfig |
| size_t | AQPResult = 0 |
Protected Member Functions | |
| void | inOrderSort (std::vector< TrackTuplePtr > &arr) |
| void | OoOSort (std::vector< TrackTuplePtr > &arr) |
| void | inlineTest (void) |
| void | forceInOrder (std::vector< TrackTuplePtr > &arr) |
Protected Attributes | |
| tsType | timeStep = 1 |
The test bench class to feed data.
| double OoOJoin::TestBench::getAvgLatency | ( | ) |
to compute average latency after run a test
| double OoOJoin::TestBench::getLatencyPercentage | ( | double | fraction | ) |
to compute the latency t such that fraction of latency is below t
| fraction | The fraction you want to set |
| double OoOJoin::TestBench::getThroughput | ( | ) |
to compute the throughput after run a test
| ConfigMapPtr OoOJoin::TestBench::getTimeBreakDown | ( | ) |
get the break down information of processing time from the join operator tested
| size_t OoOJoin::TestBench::inOrderTest | ( | bool | additionalSort | ) |
test the operator under in order arrival
| additionalSort | whether or not additionally sort the input |
| void OoOJoin::TestBench::logRTuples | ( | bool | skipZero = false | ) |
print the rTuples to logging system
| skipZero | Whether skip the tuples whose processed time is zero |
| size_t OoOJoin::TestBench::OoOTest | ( | bool | additionalSort | ) |
test the operator under OoO arrival
| additionalSort | whether or not additionally sort the input |
| bool OoOJoin::TestBench::saveRTuplesToFile | ( | string | fname, |
| bool | skipZero = false |
||
| ) |
save the rTuples to a file
| fname | the name of file |
| skipZero | Whether skip the tuples whose processed time is zero |
| bool OoOJoin::TestBench::saveSTuplesToFile | ( | string | fname, |
| bool | skipZero = false |
||
| ) |
save the sTuples to a file
| fname | the name of file |
| skipZero | Whether skip the tuples whose processed time is zero |
| void OoOJoin::TestBench::setDataLoader | ( | std::string | tag, |
| ConfigMapPtr | globalCfg | ||
| ) |
load a dataset according to the tag
| tag | the name tag of DataLoader |
| globalCfg | the global config file to load dataset |
| void OoOJoin::TestBench::setDataSet | ( | std::vector< TrackTuplePtr > | _r, |
| std::vector< TrackTuplePtr > | _s | ||
| ) |
set the dataset to feed
| _r | The r tuples |
| _s | The s tuples |
| bool OoOJoin::TestBench::setOperator | ( | OoOJoin::AbstractOperatorPtr | op, |
| ConfigMapPtr | cfg | ||
| ) |
set the operator to test
| op | shared pointer to operator |
| cfg | the config file to operator |
|
inline |
get the size of loaded r tuple
|
inline |
get the size of loaded s tuple