OmniSciDB
a5dc49c757
|
#include <StringDictionaryGenerations.h>
Public Member Functions | |
StringDictionaryGenerations () | |
void | setGeneration (const shared::StringDictKey &dict_key, const uint64_t generation) |
void | updateGeneration (const shared::StringDictKey &dict_key, const uint64_t generation) |
int64_t | getGeneration (const shared::StringDictKey &dict_key) const |
const std::unordered_map < shared::StringDictKey, uint64_t > & | asMap () const |
void | clear () |
Private Attributes | |
std::unordered_map < shared::StringDictKey, uint64_t > | dict_key_to_generation_ |
Definition at line 23 of file StringDictionaryGenerations.h.
|
inline |
Definition at line 25 of file StringDictionaryGenerations.h.
const std::unordered_map< shared::StringDictKey, uint64_t > & StringDictionaryGenerations::asMap | ( | ) | const |
Definition at line 52 of file StringDictionaryGenerations.cpp.
References dict_key_to_generation_.
void StringDictionaryGenerations::clear | ( | ) |
Definition at line 56 of file StringDictionaryGenerations.cpp.
References dict_key_to_generation_, and gpu_enabled::swap().
int64_t StringDictionaryGenerations::getGeneration | ( | const shared::StringDictKey & | dict_key | ) | const |
Definition at line 32 of file StringDictionaryGenerations.cpp.
References dict_key_to_generation_.
void StringDictionaryGenerations::setGeneration | ( | const shared::StringDictKey & | dict_key, |
const uint64_t | generation | ||
) |
Definition at line 21 of file StringDictionaryGenerations.cpp.
References dict_key_to_generation_.
Referenced by Executor::computeStringDictionaryGenerations(), and ThriftSerializers::string_dictionary_generations_from_thrift().
void StringDictionaryGenerations::updateGeneration | ( | const shared::StringDictKey & | dict_key, |
const uint64_t | generation | ||
) |
Definition at line 26 of file StringDictionaryGenerations.cpp.
References CHECK, and dict_key_to_generation_.
|
private |
Definition at line 38 of file StringDictionaryGenerations.h.
Referenced by asMap(), clear(), getGeneration(), setGeneration(), and updateGeneration().