#include <MMapIndex.h>
Public Member Functions | |
MasterMMapIndexer (const std::string &filename) | |
~MasterMMapIndexer () | |
void | commit () |
Close the file and perform the final rename. | |
void | append (const MMapIndexer &idx) |
Append one subindex. | |
Protected Attributes | |
std::string | finalname |
std::string | tmpname |
int | fd |
It allows to write many indexes in the same file, atomically: the file will be created as a tempfile and atomically renamed to the destination filename on class destruction.
|
|
|
|
|
Append one subindex.
|
|
Close the file and perform the final rename.
|
|
|
|
|
|
|