24 using namespace Data_Namespace;
29 const size_t num_reader_threads,
33 const size_t page_size,
34 const size_t initial_size)
override;
35 void deleteBuffer(
const ChunkKey& chunk_key,
const bool purge)
override;
36 void deleteBuffersWithPrefix(
const ChunkKey& chunk_key_prefix,
37 const bool purge)
override;
39 void fetchBuffer(
const ChunkKey& chunk_key,
41 const size_t num_bytes)
override;
44 const size_t num_bytes)
override;
46 const ChunkKey& chunk_key_prefix)
override;
47 bool isBufferOnDevice(
const ChunkKey& chunk_key)
override;
48 std::string printSlabs()
override;
49 size_t getMaxSize()
override;
50 size_t getInUseSize()
override;
51 size_t getAllocated()
override;
52 bool isAllocationCapped()
override;
53 void checkpoint()
override;
54 void checkpoint(
const int db_id,
const int tb_id)
override;
57 MgrType getMgrType()
override;
58 std::string getStringMgrType()
override;
59 size_t getNumChunks()
override;
60 void removeTableRelatedDS(
const int db_id,
const int table_id)
override;
61 void removeMutableTableCacheData(
const int db_id,
const int table_id)
const;
67 return disk_cache_config_;
75 bool isForeignStorage(
const ChunkKey& chunk_key)
const;
76 AbstractBufferMgr* getStorageMgrForTableKey(
const ChunkKey& table_key)
const;
77 bool isChunkPrefixCacheable(
const ChunkKey& chunk_prefix)
const;
78 int recoverDataWrapperIfCachedAndGetHighestFragId(
const ChunkKey& table_key);
82 std::unique_ptr<foreign_storage::ForeignStorageCache>
disk_cache_;
84 std::shared_ptr<ForeignStorageInterface>
fsi_;
const File_Namespace::DiskCacheConfig getDiskCacheConfig() const
std::vector< int > ChunkKey
This file includes the class specification for the FILE manager (FileMgr), and related data structure...
This file includes the class specification for the cache used by the Foreign Storage Interface (FSI)...
const std::shared_ptr< ForeignStorageInterface > getForeignStorageInterface() const
std::shared_ptr< ForeignStorageInterface > fsi_
An AbstractBuffer is a unit of data management for a data manager.
std::unique_ptr< foreign_storage::ForeignStorageCache > disk_cache_
File_Namespace::DiskCacheConfig disk_cache_config_
std::unique_ptr< File_Namespace::GlobalFileMgr > global_file_mgr_
std::unique_ptr< foreign_storage::ForeignStorageMgr > foreign_storage_mgr_