| /rocksdb-6.9/cache/ |
| D | lru_cache_test.cc | 39 Cache::Priority priority = Cache::Priority::LOW) { in Insert() 44 void Insert(char key, Cache::Priority priority = Cache::Priority::LOW) { in Insert() 124 Insert("a", Cache::Priority::LOW); in TEST_F() 125 Insert("b", Cache::Priority::LOW); in TEST_F() 126 Insert("c", Cache::Priority::LOW); in TEST_F() 133 Insert("d", Cache::Priority::LOW); in TEST_F() 147 Insert("a", Cache::Priority::LOW); in TEST_F() 148 Insert("b", Cache::Priority::LOW); in TEST_F() 149 Insert("c", Cache::Priority::LOW); in TEST_F() 153 Insert("u", Cache::Priority::LOW); in TEST_F() [all …]
|
| D | cache_test.cc | 48 class Deleter : public Cache::Deleter { 65 std::shared_ptr<Cache> cache_; 66 std::shared_ptr<Cache> cache2_; 87 std::shared_ptr<Cache> NewCache( in NewCache() 212 Cache::Handle* handle; in TEST_P() 213 Cache::Handle* handle_in_precise_cache; in TEST_P() 457 Cache* const cache = static_cast<Cache*>(value); in TEST_P() 537 Cache::Handle* handle; in TEST_P() 552 Cache::Handle* handle; in TEST_P() 572 std::vector<Cache::Handle*> handles(10); in TEST_P() [all …]
|
| D | clock_cache.cc | 16 std::shared_ptr<Cache> NewClockCache( in NewClockCache() 178 using Deleter = Cache::Deleter; 273 Deleter* deleter, Cache::Handle** handle, 274 Cache::Priority priority) override; 280 bool Ref(Cache::Handle* handle) override; 449 bool ClockCacheShard::Ref(Cache::Handle* h) { in Ref() 614 Cache::Handle** out_handle, in Insert() 628 *out_handle = reinterpret_cast<Cache::Handle*>(handle); in Insert() 644 if (!Ref(reinterpret_cast<Cache::Handle*>(handle))) { in Lookup() 657 return reinterpret_cast<Cache::Handle*>(handle); in Lookup() [all …]
|
| D | sharded_cache.h | 24 using Deleter = Cache::Deleter; 30 size_t charge, Deleter* deleter, Cache::Handle** handle, 31 Cache::Priority priority) = 0; 32 virtual Cache::Handle* Lookup(const Slice& key, uint32_t hash) = 0; 33 virtual bool Ref(Cache::Handle* handle) = 0; 34 virtual bool Release(Cache::Handle* handle, bool force_erase = false) = 0; 56 class ShardedCache : public Cache {
|
| D | lru_cache.h | 51 using Deleter = Cache::Deleter; 109 void SetPriority(Cache::Priority priority) { in SetPriority() 110 if (priority == Cache::Priority::HIGH) { in SetPriority() 214 size_t charge, Deleter* deleter, Cache::Handle** handle, in ALIGN_AS() 215 Cache::Priority priority) override; in ALIGN_AS() 216 virtual Cache::Handle* Lookup(const Slice& key, uint32_t hash) override; in ALIGN_AS() 217 virtual bool Ref(Cache::Handle* handle) override; in ALIGN_AS() 218 virtual bool Release(Cache::Handle* handle, in ALIGN_AS()
|
| D | lru_cache.cc | 271 Cache::Handle* LRUCacheShard::Lookup(const Slice& key, uint32_t hash) { in Lookup() 283 return reinterpret_cast<Cache::Handle*>(e); in Lookup() 286 bool LRUCacheShard::Ref(Cache::Handle* h) { in Ref() 302 bool LRUCacheShard::Release(Cache::Handle* handle, bool force_erase) { in Release() 341 Cache::Handle** handle, Cache::Priority priority) { in Insert() 404 *handle = reinterpret_cast<Cache::Handle*>(e); in Insert() 545 std::shared_ptr<Cache> NewLRUCache(const LRUCacheOptions& cache_opts) { in NewLRUCache() 553 std::shared_ptr<Cache> NewLRUCache( in NewLRUCache()
|
| /rocksdb-6.9/include/rocksdb/ |
| D | cache.h | 35 class Cache; variable 113 extern std::shared_ptr<Cache> NewLRUCache( 121 extern std::shared_ptr<Cache> NewLRUCache(const LRUCacheOptions& cache_opts); 128 extern std::shared_ptr<Cache> NewClockCache( 133 class Cache { 146 Cache(std::shared_ptr<MemoryAllocator> allocator = nullptr) 149 Cache(const Cache&) = delete; 150 Cache& operator=(const Cache&) = delete; 156 virtual ~Cache() {} in ~Cache()
|
| D | options.h | 34 class Cache; variable 102 std::shared_ptr<Cache>* cache = nullptr); 368 DBOptions* OptimizeForSmallDb(std::shared_ptr<Cache>* cache = nullptr); 1012 std::shared_ptr<Cache> row_cache = nullptr;
|
| /rocksdb-6.9/table/block_based/ |
| D | cachable_entry.h | 46 CachableEntry(T* value, Cache* cache, Cache::Handle* cache_handle, in CachableEntry() 114 Cache* GetCache() const { return cache_; } in GetCache() 115 Cache::Handle* GetCacheHandle() const { return cache_handle_; } in GetCacheHandle() 164 void SetCachedValue(T* value, Cache* cache, Cache::Handle* cache_handle) { in SetCachedValue() 200 Cache* const cache = static_cast<Cache*>(arg1); in ReleaseCacheHandle() 203 Cache::Handle* const cache_handle = static_cast<Cache::Handle*>(arg2); in ReleaseCacheHandle() 215 Cache* cache_ = nullptr; 216 Cache::Handle* cache_handle_ = nullptr;
|
| D | reader_common.cc | 16 Cache* cache = reinterpret_cast<Cache*>(arg); in ForceReleaseCachedEntry() 17 Cache::Handle* handle = reinterpret_cast<Cache::Handle*>(h); in ForceReleaseCachedEntry()
|
| D | block_based_table_reader.h | 27 class Cache; variable 263 Cache::Handle* GetEntryFromCache(Cache* block_cache, const Slice& key, 338 Cache* block_cache, Cache* block_cache_compressed, 356 Cache* block_cache, Cache* block_cache_compressed, 432 static void GenerateCachePrefix(Cache* cc, FSRandomAccessFile* file, 434 static void GenerateCachePrefix(Cache* cc, FSWritableFile* file, char* buffer,
|
| D | block_based_table_reader_impl.h | 83 Cache* const block_cache = rep_->table_options.block_cache.get(); in NewDataBlockIterator() 84 Cache::Handle* cache_handle = nullptr; in NewDataBlockIterator() 155 Cache* const block_cache = rep_->table_options.block_cache.get(); in NewDataBlockIterator() 156 Cache::Handle* cache_handle = nullptr; in NewDataBlockIterator()
|
| /rocksdb-6.9/db/ |
| D | table_cache.cc | 38 Cache* cache = reinterpret_cast<Cache*>(arg1); in UnrefEntry() 39 Cache::Handle* h = reinterpret_cast<Cache::Handle*>(arg2); in UnrefEntry() 187 Cache::Handle* handle = nullptr; in NewIterator() 266 Cache::Handle* handle = nullptr; in GetRangeTombstoneIterator() 328 ((Cache*)cache_to_clean)->Release((Cache::Handle*)cache_handle); in GetFromRowCache() 381 Cache::Handle* handle = nullptr; in Get() 444 Cache::Handle* handle = nullptr; in MultiGet() 569 Cache::Handle* table_handle = nullptr; in GetTableProperties() 593 Cache::Handle* table_handle = nullptr; in GetMemoryUsageByTableReader() 616 Cache::Handle* table_handle = nullptr; in ApproximateOffsetOf() [all …]
|
| D | table_cache.h | 52 const FileOptions& storage_options, Cache* cache, 122 static void Evict(Cache* cache, uint64_t file_number); 126 void EraseHandle(const FileDescriptor& fd, Cache::Handle* handle); 133 const FileDescriptor& file_fd, Cache::Handle**, 141 TableReader* GetTableReaderFromHandle(Cache::Handle* handle); 178 void ReleaseHandle(Cache::Handle* handle); 180 Cache* get_cache() const { return cache_; } in get_cache() 220 Cache* const cache_;
|
| D | db_block_cache_test.cc | 156 std::shared_ptr<Cache> cache = NewLRUCache(0, 0, false); in TEST_F() 180 std::shared_ptr<Cache> cache = NewLRUCache(0, 0, false); in TEST_F() 234 std::shared_ptr<Cache> cache = NewLRUCache(0, 0, false); in TEST_F() 235 std::shared_ptr<Cache> compressed_cache = NewLRUCache(1 << 25, 0, false); in TEST_F() 353 std::shared_ptr<Cache> cache = NewLRUCache(10, 0, true); in TEST_F() 390 std::shared_ptr<Cache> cache = NewLRUCache(co); in TEST_F() 463 for (auto priority : {Cache::Priority::LOW, Cache::Priority::HIGH}) { in TEST_F() 472 priority == Cache::Priority::HIGH ? true : false; in TEST_F() 491 if (priority == Cache::Priority::LOW) { in TEST_F() 509 if (priority == Cache::Priority::LOW) { in TEST_F()
|
| /rocksdb-6.9/utilities/simulator_cache/ |
| D | cache_simulator.h | 85 explicit GhostCache(std::shared_ptr<Cache> sim_cache); 98 std::shared_ptr<Cache> sim_cache_; 105 std::shared_ptr<Cache> sim_cache); 122 std::shared_ptr<Cache> sim_cache_; 131 std::shared_ptr<Cache> sim_cache) in PrioritizedCacheSimulator() 138 Cache::Priority priority, 143 Cache::Priority ComputeBlockPriority( 159 std::shared_ptr<Cache> sim_cache, in HybridRowBlockCacheSimulator()
|
| D | cache_simulator.cc | 16 GhostCache::GhostCache(std::shared_ptr<Cache> sim_cache) in GhostCache() 31 std::shared_ptr<Cache> sim_cache) in CacheSimulator() 77 Cache::Priority PrioritizedCacheSimulator::ComputeBlockPriority( in ComputeBlockPriority() 82 return Cache::Priority::HIGH; in ComputeBlockPriority() 84 return Cache::Priority::LOW; in ComputeBlockPriority() 88 const Slice& key, uint64_t value_size, Cache::Priority priority, in AccessKVPair() 148 AccessKVPair(row_key, access.referenced_data_size, Cache::Priority::HIGH, in Access() 181 /*handle=*/nullptr, Cache::Priority::HIGH); in Access()
|
| D | sim_cache.cc | 157 SimCacheImpl(std::shared_ptr<Cache> sim_cache, std::shared_ptr<Cache> cache) in SimCacheImpl() 316 std::shared_ptr<Cache> cache_; 317 std::shared_ptr<Cache> key_only_cache_; 332 std::shared_ptr<SimCache> NewSimCache(std::shared_ptr<Cache> cache, in NewSimCache() 341 std::shared_ptr<SimCache> NewSimCache(std::shared_ptr<Cache> sim_cache, in NewSimCache() 342 std::shared_ptr<Cache> cache, in NewSimCache()
|
| /rocksdb-6.9/memtable/ |
| D | write_buffer_manager.cc | 24 std::shared_ptr<Cache> cache_; 30 std::vector<Cache::Handle*> dummy_handles_; 32 explicit CacheRep(std::shared_ptr<Cache> cache) in CacheRep() 52 std::shared_ptr<Cache> cache) in WriteBufferManager() 91 Cache::Handle* handle; in ReserveMemWithCache()
|
| /rocksdb-6.9/include/rocksdb/utilities/ |
| D | sim_cache.h | 35 extern std::shared_ptr<SimCache> NewSimCache(std::shared_ptr<Cache> cache, 39 extern std::shared_ptr<SimCache> NewSimCache(std::shared_ptr<Cache> sim_cache, 40 std::shared_ptr<Cache> cache, 43 class SimCache : public Cache {
|
| /rocksdb-6.9/java/src/test/java/org/rocksdb/ |
| D | MemoryUtilTest.java | 39 try (final Cache cache = new LRUCache(8 * 1024 * 1024); in getApproximateMemoryUsageByType() 51 Set<Cache> caches = new HashSet<>(1); in getApproximateMemoryUsageByType() 100 try (final Cache cache1 = new LRUCache(1 * 1024 * 1024); in getApproximateMemoryUsageByTypeMultiple() 107 final Cache cache2 = new LRUCache(1 * 1024 * 1024); in getApproximateMemoryUsageByTypeMultiple() 121 Set<Cache> caches = new HashSet<>(1); in getApproximateMemoryUsageByTypeMultiple()
|
| /rocksdb-6.9/java/rocksjni/ |
| D | table.cc | 89 std::shared_ptr<ROCKSDB_NAMESPACE::Cache> *pCache = in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle() 90 reinterpret_cast<std::shared_ptr<ROCKSDB_NAMESPACE::Cache> *>( in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle() 114 std::shared_ptr<ROCKSDB_NAMESPACE::Cache> *pCache = in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle() 115 reinterpret_cast<std::shared_ptr<ROCKSDB_NAMESPACE::Cache> *>( in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle()
|
| D | clock_cache.cc | 22 auto* sptr_clock_cache = new std::shared_ptr<ROCKSDB_NAMESPACE::Cache>( in Java_org_rocksdb_ClockCache_newClockCache() 38 reinterpret_cast<std::shared_ptr<ROCKSDB_NAMESPACE::Cache>*>(jhandle); in Java_org_rocksdb_ClockCache_disposeInternal()
|
| /rocksdb-6.9/java/src/main/java/org/rocksdb/ |
| D | BlockBasedTableConfig.java | 275 public BlockBasedTableConfig setBlockCache(final Cache blockCache) { in setBlockCache() 316 final Cache blockCacheCompressed) { in setBlockCacheCompressed() 962 private Cache blockCache; 964 private Cache blockCacheCompressed;
|
| D | Cache.java | 9 public abstract class Cache extends RocksObject { class 10 protected Cache(final long nativeHandle) { in Cache() method in Cache
|