Merge the scanned triple blocks for index construction. More...
Public Member Functions | |
MergeBlocks (BlockStats *blockStats) | |
Initialise the block merging. | |
void | merge (FileBlockQueue *runPositions, FileBlockQueue *wordList, FileBlockQueue *wUsedQueue) |
Perform the triple block merging. |
Merge the scanned triple blocks for index construction.
This class provides the methods to merge the sorted triple blocks to produce triples sorted by their word id. Note that these sorted blocks are scattered through the binary file and must later be sorted using PermuteBlocks. The template parameters are the class of objects being read (T) and the class of objects being written (S).