#include <SortMergeTextFiles.hpp>
Inheritance diagram for lemur::file::FileMergeThread:

Public Types | |
| enum | { MAX_INPUT_FILES = 16, MAX_INPUT_LINESIZE = 65536 } |
Public Member Functions | |
| FileMergeThread (std::vector< std::string > &inputFileList, const std::string &outputFile) | |
| ~FileMergeThread () | |
| virtual bool | hasWork () |
| virtual UINT64 | work () |
| virtual UINT64 | initialize () |
| virtual void | deinitialize () |
| int | getRecordCounter () |
| bool | isThreadActive () |
Private Member Functions | |
| int | chooseNextBuffer () |
Private Attributes | |
| FILE * | inputFile [MAX_INPUT_FILES] |
| std::ofstream | outfile |
| std::string | filePath [MAX_INPUT_FILES] |
| std::string | outputFilePath |
| char | _buffer [MAX_INPUT_FILES][MAX_INPUT_LINESIZE] |
| bool | fileDone [MAX_INPUT_FILES] |
| char | _outputBuffer [2 *1024 *1024] |
| int | numInputFiles |
| int | recordCounter |
| bool | isActive |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
Implements indri::thread::UtilityThread. |
|
|
|
|
|
Implements indri::thread::UtilityThread. |
|
|
Implements indri::thread::UtilityThread. |
|
|
|
|
|
Implements indri::thread::UtilityThread. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.4