5 #ifndef JODA_FILEJOINMANAGER_H
6 #define JODA_FILEJOINMANAGER_H
8 #include <unordered_map>
25 std::unique_ptr<joda::query::IValueProvider>&&
valProv);
44 bool createFile(
const std::string& file,
bool val);
45 bool createFile(
const std::string& file,
long val);
46 bool createFile(
const std::string& file,
const std::string& val);
55 std::unordered_map<long, JODA_JOINID>
lMap;
56 std::unordered_map<std::string, JODA_JOINID>
sMap;
57 std::unordered_map<JODA_JOINID, std::mutex>
fLock;
unsigned long JODA_JOINID
Definition: JoinManager.h:14
rapidjson::GenericValue< RJChar, RJMemoryPoolAlloc > RJValue
Definition: RJFwd.h:29
Definition: FileJoinManager.h:15
~FileJoinManager() override
Definition: FileJoinManager.cpp:171
std::unordered_map< long, JODA_JOINID > lMap
Definition: FileJoinManager.h:55
std::unordered_map< std::string, JODA_JOINID > sMap
Definition: FileJoinManager.h:56
FileJoinManager(const std::string &name, std::unique_ptr< joda::query::IValueProvider > &&valProv)
Definition: FileJoinManager.cpp:107
const std::string & getBaseDir() const
Definition: FileJoinManager.cpp:176
std::string baseDir
Definition: FileJoinManager.h:51
bool trueValCreated
Definition: FileJoinManager.h:59
std::string getFile(JODA_JOINID id)
Definition: FileJoinManager.cpp:103
std::mutex mut
Definition: FileJoinManager.h:52
JODA_JOINID currID
Definition: FileJoinManager.h:54
std::unordered_map< JODA_JOINID, std::mutex > fLock
Definition: FileJoinManager.h:57
JODA_JOINID getJoinVal(const RJValue &val)
Definition: FileJoinManager.cpp:13
bool appendDocToFile(const RapidJsonDocument &doc, const std::string &file)
Definition: FileJoinManager.cpp:151
void join(const RapidJsonDocument &doc) override
Definition: FileJoinManager.cpp:120
bool createFile(const std::string &file, bool val)
Definition: FileJoinManager.cpp:80
bool falseValCreated
Definition: FileJoinManager.h:60
Definition: JoinManager.h:19
@ STARTNORMAL_VAL
Definition: JoinManager.h:53
std::string name
Definition: JoinManager.h:55
std::unique_ptr< joda::query::IValueProvider > valProv
Definition: JoinManager.h:56
Definition: RapidJsonDocument.h:22