OmniSciDB
a5dc49c757
|
#include <TableFunctionsDataCache.h>
Public Member Functions | |
bool | isKeyCached (const std::string &key) const |
bool | isKeyCachedAndSameLength (const std::string &key, const size_t num_bytes) const |
template<typename T > | |
void | getDataForKey (const std::string &key, T *dest_buffer) const |
template<typename T > | |
const T & | getDataRefForKey (const std::string &key) const |
template<typename T > | |
const T * | getDataPtrForKey (const std::string &key) const |
template<typename T > | |
void | putDataForKey (const std::string &key, T *const data_buffer, const size_t num_elements) |
Private Member Functions | |
void | copyData (int8_t *dest, const int8_t *source, const size_t num_bytes) const |
Private Attributes | |
const size_t | parallel_copy_min_bytes {1 << 20} |
std::unordered_map < std::string, std::shared_ptr < CacheDataTf > > | data_cache_ |
std::shared_mutex | cache_mutex_ |
Static Private Attributes | |
static constexpr bool | debug_print_ {false} |
Definition at line 41 of file TableFunctionsDataCache.h.
|
inlineprivate |
Definition at line 118 of file TableFunctionsDataCache.h.
References parallel_copy_min_bytes, and threading_serial::parallel_for().
Referenced by getDataForKey(), and putDataForKey().
|
inline |
Definition at line 58 of file TableFunctionsDataCache.h.
References cache_mutex_, copyData(), data_cache_, and DEBUG_TIMER.
|
inline |
Definition at line 83 of file TableFunctionsDataCache.h.
References cache_mutex_, data_cache_, and heavydb.dtypes::T.
|
inline |
Definition at line 72 of file TableFunctionsDataCache.h.
References cache_mutex_, data_cache_, and heavydb.dtypes::T.
|
inline |
Definition at line 43 of file TableFunctionsDataCache.h.
References cache_mutex_, and data_cache_.
|
inline |
Definition at line 48 of file TableFunctionsDataCache.h.
References cache_mutex_, and data_cache_.
|
inline |
Definition at line 93 of file TableFunctionsDataCache.h.
References cache_mutex_, copyData(), data_cache_, debug_print_, DEBUG_TIMER, and heavydb.dtypes::T.
|
mutableprivate |
Definition at line 140 of file TableFunctionsDataCache.h.
Referenced by getDataForKey(), getDataPtrForKey(), getDataRefForKey(), isKeyCached(), isKeyCachedAndSameLength(), and putDataForKey().
|
private |
Definition at line 139 of file TableFunctionsDataCache.h.
Referenced by getDataForKey(), getDataPtrForKey(), getDataRefForKey(), isKeyCached(), isKeyCachedAndSameLength(), and putDataForKey().
|
staticprivate |
Definition at line 141 of file TableFunctionsDataCache.h.
Referenced by putDataForKey().
|
private |
Definition at line 116 of file TableFunctionsDataCache.h.
Referenced by copyData().