OmniSciDB
a5dc49c757
|
#include <LRUEvictionAlgorithm.h>
Public Member Functions | |
~LRUEvictionAlgorithm () override | |
const ChunkKey | evictNextChunk () override |
void | touchChunk (const ChunkKey &) override |
void | removeChunk (const ChunkKey &) override |
std::string | dumpEvictionQueue () |
Public Member Functions inherited from CacheEvictionAlgorithm | |
virtual | ~CacheEvictionAlgorithm () |
Private Attributes | |
std::list< ChunkKey > | cache_items_list_ |
std::map< const ChunkKey, std::list< ChunkKey > ::iterator > | cache_items_map_ |
heavyai::shared_mutex | cache_mutex_ |
Definition at line 39 of file LRUEvictionAlgorithm.h.
|
inlineoverride |
Definition at line 41 of file LRUEvictionAlgorithm.h.
std::string LRUEvictionAlgorithm::dumpEvictionQueue | ( | ) |
Definition at line 59 of file LRUEvictionAlgorithm.cpp.
References cache_items_list_, cache_mutex_, and show_chunk().
Referenced by File_Namespace::CachingFileMgr::dump(), File_Namespace::CachingFileMgr::dumpEvictionQueue(), and File_Namespace::CachingFileMgr::dumpTableQueue().
|
overridevirtual |
Implements CacheEvictionAlgorithm.
Definition at line 27 of file LRUEvictionAlgorithm.cpp.
References cache_items_list_, cache_items_map_, cache_mutex_, and CHECK.
Referenced by anonymous_namespace{CachingFileMgr.cpp}::evict_chunk_or_fail().
|
overridevirtual |
Implements CacheEvictionAlgorithm.
Definition at line 49 of file LRUEvictionAlgorithm.cpp.
References cache_items_list_, cache_items_map_, and cache_mutex_.
|
overridevirtual |
Implements CacheEvictionAlgorithm.
Definition at line 38 of file LRUEvictionAlgorithm.cpp.
References cache_items_list_, cache_items_map_, and cache_mutex_.
|
private |
Definition at line 52 of file LRUEvictionAlgorithm.h.
Referenced by dumpEvictionQueue(), evictNextChunk(), removeChunk(), and touchChunk().
|
private |
Definition at line 53 of file LRUEvictionAlgorithm.h.
Referenced by evictNextChunk(), removeChunk(), and touchChunk().
|
mutableprivate |
Definition at line 54 of file LRUEvictionAlgorithm.h.
Referenced by dumpEvictionQueue(), evictNextChunk(), removeChunk(), and touchChunk().