25 :
public DataRecycler<std::optional<HashType>, EMPTY_META_INFO> {
32 std::numeric_limits<size_t>::max(),
33 std::numeric_limits<size_t>::max(),
40 std::optional<EMPTY_META_INFO> meta_info = std::nullopt)
override;
43 std::optional<HashType> item,
48 std::optional<EMPTY_META_INFO> meta_info = std::nullopt)
override;
56 std::unordered_set<QueryPlanHash>& key_set,
60 std::string
toString()
const override;
67 std::lock_guard<std::mutex>& lock,
68 std::optional<EMPTY_META_INFO> meta_info = std::nullopt)
const override;
75 std::lock_guard<std::mutex>& lock,
76 std::optional<EMPTY_META_INFO> meta_info = std::nullopt)
override;
83 std::lock_guard<std::mutex>& lock,
84 std::optional<EMPTY_META_INFO> meta_info = std::nullopt)
override {}
bool hasItemInCache(QueryPlanHash key, CacheItemType item_type, DeviceIdentifier device_identifier, std::lock_guard< std::mutex > &lock, std::optional< EMPTY_META_INFO > meta_info=std::nullopt) const override
void clearCache() override
constexpr DeviceIdentifier LAYOUT_CACHE_DEVICE_IDENTIFIER
void markCachedItemAsDirty(size_t table_key, std::unordered_set< QueryPlanHash > &key_set, CacheItemType item_type, DeviceIdentifier device_identifier) override
void putItemToCache(QueryPlanHash key, std::optional< HashType > item, CacheItemType item_type, DeviceIdentifier device_identifier, size_t item_size, size_t compute_time, std::optional< EMPTY_META_INFO > meta_info=std::nullopt) override
void removeItemFromCache(QueryPlanHash key, CacheItemType item_type, DeviceIdentifier device_identifier, std::lock_guard< std::mutex > &lock, std::optional< EMPTY_META_INFO > meta_info=std::nullopt) override
void cleanupCacheForInsertion(CacheItemType item_type, DeviceIdentifier device_identifier, size_t required_size, std::lock_guard< std::mutex > &lock, std::optional< EMPTY_META_INFO > meta_info=std::nullopt) override
virtual std::optional< HashType > getItemFromCache(QueryPlanHash key, CacheItemType item_type, DeviceIdentifier device_identifier, std::optional< EMPTY_META_INFO > meta_info=std::nullopt)=0
void initCache() override
std::string toString() const override
static constexpr DeviceIdentifier CPU_DEVICE_IDENTIFIER