| /rocksdb-6.9/table/block_based/ |
| D | block_based_table_reader_impl.h | 83 Cache* const block_cache = rep_->table_options.block_cache.get(); in NewDataBlockIterator() local 102 s = block_cache->Insert(unique_key, nullptr, in NewDataBlockIterator() 108 iter->RegisterCleanup(&ForceReleaseCachedEntry, block_cache, in NewDataBlockIterator() 155 Cache* const block_cache = rep_->table_options.block_cache.get(); in NewDataBlockIterator() local 174 s = block_cache->Insert(unique_key, nullptr, in NewDataBlockIterator() 179 iter->RegisterCleanup(&ForceReleaseCachedEntry, block_cache, in NewDataBlockIterator()
|
| D | block_based_table_factory.cc | 170 table_options_.block_cache.reset(); in BlockBasedTableFactory() 171 } else if (table_options_.block_cache == nullptr) { in BlockBasedTableFactory() 177 table_options_.block_cache = NewLRUCache(co); in BlockBasedTableFactory() 337 static_cast<void*>(table_options_.block_cache.get())); in GetPrintableTableOptions() 339 if (table_options_.block_cache) { in GetPrintableTableOptions() 340 const char* block_cache_name = table_options_.block_cache->Name(); in GetPrintableTableOptions() 347 ret.append(table_options_.block_cache->GetPrintableOptions()); in GetPrintableTableOptions() 504 new_options->block_cache = cache; in ParseBlockBasedTableOption()
|
| D | block_based_table_reader.cc | 395 Cache* block_cache, const Slice& key, BlockType block_type, in GetEntryFromCache() argument 414 if (rep->table_options.block_cache != nullptr) { in SetupCacheKeyPrefix() 1093 Cache* block_cache, Cache* block_cache_compressed, in GetDataBlockFromCache() argument 1109 if (block_cache != nullptr) { in GetDataBlockFromCache() 1115 block_cache, cache_handle); in GetDataBlockFromCache() 1193 Cache* block_cache, Cache* block_cache_compressed, in PutDataBlockToCache() argument 1270 if (block_cache != nullptr && block_holder->own_bytes()) { in PutDataBlockToCache() 1378 Cache* block_cache = rep_->table_options.block_cache.get(); in MaybeReadBlockAndLoadToCache() local 1395 if (block_cache != nullptr) { in MaybeReadBlockAndLoadToCache() 2532 Cache* block_cache = rep_->table_options.block_cache.get(); in MultiGet() local [all …]
|
| D | reader_common.h | 19 return table_options.block_cache.get() in GetMemoryAllocator() 20 ? table_options.block_cache->memory_allocator() in GetMemoryAllocator()
|
| D | block_based_table_reader.h | 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,
|
| /rocksdb-6.9/java/rocksjni/ |
| D | table.cc | 86 options.block_cache = nullptr; in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle() 92 options.block_cache = *pCache; in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle() 95 options.block_cache = ROCKSDB_NAMESPACE::NewLRUCache( in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle() 99 options.block_cache = ROCKSDB_NAMESPACE::NewLRUCache( in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle() 104 options.block_cache = nullptr; in Java_org_rocksdb_BlockBasedTableConfig_newTableFactoryHandle()
|
| /rocksdb-6.9/options/ |
| D | options_test.cc | 533 ASSERT_TRUE(new_opt.block_cache != nullptr); in TEST_F() 534 ASSERT_EQ(new_opt.block_cache->GetCapacity(), 1024UL*1024UL); in TEST_F() 599 ASSERT_TRUE(new_opt.block_cache != nullptr); in TEST_F() 602 new_opt.block_cache)->GetNumShardBits(), 4); in TEST_F() 621 ASSERT_TRUE(new_opt.block_cache != nullptr); in TEST_F() 625 new_opt.block_cache)->GetNumShardBits(), in TEST_F() 650 ASSERT_EQ(new_opt.block_cache->GetCapacity(), 0); in TEST_F() 652 new_opt.block_cache)->GetNumShardBits(), 5); in TEST_F() 672 ASSERT_TRUE(new_opt.block_cache != nullptr); in TEST_F() 675 new_opt.block_cache)->GetNumShardBits(), 4); in TEST_F() [all …]
|
| D | options_settable_test.cc | 88 {offsetof(struct BlockBasedTableOptions, block_cache), in TEST_F() 162 ASSERT_TRUE(new_bbto->block_cache.get() != nullptr); in TEST_F()
|
| D | options.cc | 498 table_options.block_cache = in OptimizeForSmallDb() 517 block_based_options.block_cache = in OptimizeForPointLookup()
|
| /rocksdb-6.9/db/ |
| D | db_block_cache_test.cc | 157 table_options.block_cache = cache; in TEST_F() 181 table_options.block_cache = cache; in TEST_F() 236 table_options.block_cache = cache; in TEST_F() 354 table_options.block_cache = cache; in TEST_F() 391 table_options.block_cache = cache; in TEST_F() 469 table_options.block_cache.reset(new MockCache()); in TEST_F() 584 table_options.block_cache = NewLRUCache(8 * 1024); in TEST_F() 591 table_options.block_cache = nullptr; in TEST_F() 597 table_options.block_cache = NewLRUCache(1024); in TEST_F() 604 table_options.block_cache = NewLRUCache(1024 * 1024); in TEST_F() [all …]
|
| D | db_merge_operator_test.cc | 313 bbto.block_cache = NewLRUCache(64 * 1024 * 1024); in TEST_P() 315 bbto.block_cache = nullptr; in TEST_P() 349 if (bbto.block_cache) { in TEST_P() 350 bbto.block_cache->SetCapacity(1); in TEST_P() 358 if (bbto.block_cache) { in TEST_P() 359 bbto.block_cache->SetCapacity(64 * 1024 * 1024); in TEST_P()
|
| D | internal_stats.cc | 906 bool InternalStats::HandleBlockCacheStat(Cache** block_cache) { in HandleBlockCacheStat() argument 907 assert(block_cache != nullptr); in HandleBlockCacheStat() 918 *block_cache = table_options->block_cache.get(); in HandleBlockCacheStat() 927 Cache* block_cache; in HandleBlockCacheCapacity() local 928 bool ok = HandleBlockCacheStat(&block_cache); in HandleBlockCacheCapacity() 932 *value = static_cast<uint64_t>(block_cache->GetCapacity()); in HandleBlockCacheCapacity() 938 Cache* block_cache; in HandleBlockCacheUsage() local 939 bool ok = HandleBlockCacheStat(&block_cache); in HandleBlockCacheUsage() 943 *value = static_cast<uint64_t>(block_cache->GetUsage()); in HandleBlockCacheUsage() 949 Cache* block_cache; in HandleBlockCachePinnedUsage() local [all …]
|
| D | db_test2.cc | 48 bbto.block_cache = NewLRUCache(1); in TEST_P() 61 if (bbto.block_cache) { in TEST_P() 62 bbto.block_cache->EraseUnRefEntries(); in TEST_P() 1509 table_options.block_cache->EraseUnRefEntries(); in CreateTwoLevels() 2186 bbto.block_cache = lru_cache; in TEST_F() 3607 bbto.block_cache = NewLRUCache(100000); in TEST_F() 3623 ASSERT_EQ(0, bbto.block_cache->GetPinnedUsage()); in TEST_F() 3643 ASSERT_GT(bbto.block_cache->GetPinnedUsage(), 0); in TEST_F() 3652 ASSERT_EQ(0, bbto.block_cache->GetPinnedUsage()); in TEST_F() 3662 bbto.block_cache->SetCapacity(0); in TEST_F() [all …]
|
| D | db_properties_test.cc | 1638 auto block_cache = NewLRUCache(co); in TEST_F() local 1639 table_options.block_cache = block_cache; in TEST_F() 1653 block_cache->Insert("item1", nullptr /*value*/, kSize1, nullptr /*deleter*/); in TEST_F() 1665 block_cache->Insert("item2", nullptr /*value*/, kSize2, nullptr /*deleter*/, in TEST_F() 1679 block_cache->Insert("item3", nullptr /*value*/, kSize3, nullptr /*deleter*/, in TEST_F() 1692 block_cache->Release(item2); in TEST_F() 1693 block_cache->Release(item3); in TEST_F()
|
| D | db_bloom_filter_test.cc | 1400 bbto.block_cache.reset(); in TEST_F() 1417 bbto.block_cache.reset(); in TEST_F() 1431 bbto.block_cache.reset(); in TEST_F() 1446 bbto.block_cache.reset(); in TEST_F() 1486 bbto.block_cache.reset(); in TEST_F()
|
| /rocksdb-6.9/utilities/leveldb_options/ |
| D | leveldb_options.cc | 29 block_cache(nullptr), in LevelDBOptions() 47 table_options.block_cache.reset(leveldb_options.block_cache); in ConvertOptions()
|
| /rocksdb-6.9/utilities/persistent_cache/ |
| D | persistent_cache_test.cc | 338 table_options.block_cache = NewLRUCache(size_max); in RunTest() 346 table_options.block_cache = NewLRUCache(size_max); in RunTest() 356 table_options.block_cache = NewLRUCache(size_max); in RunTest() 365 table_options.block_cache = nullptr; in RunTest() 374 table_options.block_cache = nullptr; in RunTest()
|
| /rocksdb-6.9/examples/ |
| D | options_file_example.cc | 51 bbt_opts.block_cache = cache; in main() 95 loaded_bbt_opt->block_cache = cache; in main()
|
| /rocksdb-6.9/utilities/simulator_cache/ |
| D | sim_cache_test.cc | 86 table_options.block_cache = simCache; in TEST_F() 153 table_options.block_cache = sim_cache; in TEST_F()
|
| /rocksdb-6.9/include/rocksdb/utilities/ |
| D | leveldb_options.h | 99 Cache* block_cache; member
|
| /rocksdb-6.9/utilities/memory/ |
| D | memory_test.cc | 50 cache_set->insert(bbt_opts.block_cache.get()); in GetCachePointersFromTableFactory() 111 bbt_opts.block_cache = NewLRUCache(4096 * 1000 * 10); in TEST_F()
|
| /rocksdb-6.9/table/ |
| D | table_test.cc | 1644 table_options.block_cache = NewLRUCache(16 * 1024 * 1024, 4); in TEST_P() 1919 table_options.block_cache = NewLRUCache(1024, 4); in IndexTest() 2393 table_options.block_cache = NewLRUCache(10000); in TEST_P() 2515 table_options.block_cache = NewLRUCache(1024 * 1024, 0); in TEST_P() 2589 table_options.block_cache = NewLRUCache(1024 * 1024, 0); in TEST_P() 2633 table_options.block_cache = NewLRUCache(1024 * 1024, 0); in TEST_P() 2761 table_options.block_cache = NewLRUCache(1024, 4); in TEST_P() 2813 table_options.block_cache = NewLRUCache(co); in TEST_P() 2896 table_options.block_cache = NewLRUCache(1, 4); in TEST_P() 2937 table_options.block_cache = NewLRUCache(4096, 4); in TEST_P() [all …]
|
| /rocksdb-6.9/docs/_posts/ |
| D | 2014-09-15-rocksdb-3-5-release.markdown | 29 …corresponding JNI interface. Options affected include: no_block_cache, block_cache, block_cache_co…
|
| /rocksdb-6.9/utilities/options/ |
| D | options_util.cc | 40 loaded_bbt_opt->block_cache = *cache; in LoadOptionsFromFile()
|
| /rocksdb-6.9/include/rocksdb/ |
| D | table.h | 154 std::shared_ptr<Cache> block_cache = nullptr; member
|