#include <InputreaderTester.hpp>
Public Member Functions | |
void | usageSimpleInput () |
Prints out the useage of this class. | |
void | doTest (int argc, char *argv[]) |
The main function. | |
Private Member Functions | |
template<class F_R> | |
void | selectReader (char *reader, char *file_name, unsigned int nr_of_scan, std::streamsize lowlevel_buffer_size) |
This function will select the reader used in the test. | |
template<class T_R> | |
void | readDatabase (char *file_name, unsigned int nr_of_scan, std::streamsize lowlevel_buffer_size) |
This function will read in the transactions. |
In this context testing means reading in all the transactions of a transactional database. To select the best transaction reader run testers/input-tester with different parameters, and measure the times, for example by using /usr/bin/time
.
The read in transactions are neither stored nor used for anything. A temporal transaction is always overwritten with the new transaction. Also, this class does not check if the transaction reader works properly. If you want to check, compile the program with DEBUG_LEVEL >= LEVEL_DBG
(i.e. make input-reader DEBUG_LEVEL=255
) and check if the output is the same as the tranasction database. For example:
./testers/input-tester stream simple ../data/T10I4D100K.dat 8000 1 | diff - ../data/T10I4D100K.dat
Note that a transaction reader may change the order of item in a transaction, or in some databases the white space after the last items of all/some transactions are ommited, and hence the output may differ from the transactional database.
Definition at line 41 of file InputreaderTester.hpp.
|
The main function.
Definition at line 23 of file InputreaderTester.cpp. References usageSimpleInput(). Referenced by main(). |
|
This function will read in the transactions.
Definition at line 96 of file InputreaderTester.hpp. References FileReprBase::READ. |
|
This function will select the reader used in the test.
Definition at line 69 of file InputreaderTester.hpp. References usageSimpleInput(). |
|
Prints out the useage of this class.
Definition at line 14 of file InputreaderTester.cpp. Referenced by doTest(), and selectReader(). |