#include <FileJoinManager.h>
The FileJoinManager is responsible for joining/grouping documents using files on the filesystem
◆ FileJoinManager()
Initializes the FileJoinManager and creates an temporary directory to store temporary files within
- Parameters
-
name | Name/Identifier of the join. It is used to create the directory. |
valProv | The IValueProvider to receive the join values from. |
◆ ~FileJoinManager()
FileJoinManager::~FileJoinManager |
( |
| ) |
|
|
override |
Deletes the temporary directory created when initializing the class
◆ appendDocToFile()
bool FileJoinManager::appendDocToFile |
( |
const RapidJsonDocument & |
doc, |
|
|
const std::string & |
file |
|
) |
| |
|
protected |
◆ createFile() [1/3]
bool FileJoinManager::createFile |
( |
const std::string & |
file, |
|
|
bool |
val |
|
) |
| |
|
protected |
◆ createFile() [2/3]
bool FileJoinManager::createFile |
( |
const std::string & |
file, |
|
|
const std::string & |
val |
|
) |
| |
|
protected |
◆ createFile() [3/3]
bool FileJoinManager::createFile |
( |
const std::string & |
file, |
|
|
long |
val |
|
) |
| |
|
protected |
◆ getBaseDir()
const std::string & FileJoinManager::getBaseDir |
( |
| ) |
const |
Returns the temporary directory used fo the joins.
- Returns
- the temporary directory used fo the joins.
◆ getFile()
◆ getJoinVal()
◆ join()
Joins a single document with the others
- Parameters
-
Implements JoinManager.
◆ baseDir
std::string FileJoinManager::baseDir |
|
protected |
◆ currID
◆ falseValCreated
bool FileJoinManager::falseValCreated = false |
|
protected |
◆ fLock
std::unordered_map<JODA_JOINID, std::mutex> FileJoinManager::fLock |
|
protected |
◆ lMap
std::unordered_map<long, JODA_JOINID> FileJoinManager::lMap |
|
protected |
◆ mut
std::mutex FileJoinManager::mut |
|
protected |
◆ sMap
std::unordered_map<std::string, JODA_JOINID> FileJoinManager::sMap |
|
protected |
◆ trueValCreated
bool FileJoinManager::trueValCreated = false |
|
protected |
The documentation for this class was generated from the following files:
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/join/include/joda/join/FileJoinManager.h
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/join/src/FileJoinManager.cpp