Home
last modified time | relevance | path

Searched refs:Lookup (Results 1 – 25 of 36) sorted by relevance

12

/rocksdb-6.9/cache/
Dcache_test.cc125 int Lookup(int key) { in Lookup() function in ROCKSDB_NAMESPACE::CacheTest
126 return Lookup(cache_, key); in Lookup()
281 ASSERT_EQ(-1, Lookup(100)); in TEST_P()
306 ASSERT_EQ(2, Lookup(1)); in TEST_P()
347 ASSERT_EQ(-1, Lookup(100)); in TEST_P()
368 ASSERT_EQ(-1, Lookup(200)); in TEST_P()
394 ASSERT_EQ(-1, Lookup(100)); in TEST_P()
423 ASSERT_EQ(-1, Lookup(100)); in TEST_P()
424 ASSERT_EQ(-1, Lookup(101)); in TEST_P()
425 ASSERT_EQ(-1, Lookup(102)); in TEST_P()
[all …]
Dlru_cache_test.cc48 bool Lookup(const std::string& key) { in Lookup() function in ROCKSDB_NAMESPACE::LRUCacheTest
57 bool Lookup(char key) { return Lookup(std::string(1, key)); } in Lookup() function in ROCKSDB_NAMESPACE::LRUCacheTest
104 ASSERT_FALSE(Lookup("b")); in TEST_F()
106 ASSERT_TRUE(Lookup("e")); in TEST_F()
108 ASSERT_TRUE(Lookup("z")); in TEST_F()
112 ASSERT_TRUE(Lookup("d")); in TEST_F()
135 ASSERT_TRUE(Lookup("d")); in TEST_F()
170 ASSERT_TRUE(Lookup("v")); in TEST_F()
174 ASSERT_TRUE(Lookup("X")); in TEST_F()
176 ASSERT_TRUE(Lookup("Z")); in TEST_F()
[all …]
Dsharded_cache.h32 virtual Cache::Handle* Lookup(const Slice& key, uint32_t hash) = 0;
76 virtual Handle* Lookup(const Slice& key, Statistics* stats) override;
Dsharded_cache.cc54 Cache::Handle* ShardedCache::Lookup(const Slice& key, Statistics* /*stats*/) { in Lookup() function in ROCKSDB_NAMESPACE::ShardedCache
56 return GetShard(Shard(hash))->Lookup(key, hash); in Lookup()
Dlru_cache.h161 LRUHandle* Lookup(const Slice& key, uint32_t hash);
216 virtual Cache::Handle* Lookup(const Slice& key, uint32_t hash) override; in ALIGN_AS()
Dlru_cache.cc34 LRUHandle* LRUHandleTable::Lookup(const Slice& key, uint32_t hash) { in Lookup() function in ROCKSDB_NAMESPACE::LRUHandleTable
271 Cache::Handle* LRUCacheShard::Lookup(const Slice& key, uint32_t hash) { in Lookup() function in ROCKSDB_NAMESPACE::LRUCacheShard
273 LRUHandle* e = table_.Lookup(key, hash); in Lookup()
Dclock_cache.cc275 Cache::Handle* Lookup(const Slice& key, uint32_t hash) override;
635 Cache::Handle* ClockCacheShard::Lookup(const Slice& key, uint32_t hash) { in Lookup() function in ROCKSDB_NAMESPACE::__anon9da5ff120111::ClockCacheShard
/rocksdb-6.9/utilities/simulator_cache/
Dcache_simulator_test.cc80 auto handle = sim_cache->Lookup(block); in AssertCache()
87 sim_cache->Lookup("0_" + ExtractUserKey(row_key).ToString()); in AssertCache()
136 auto handle = sim_cache->Lookup(access.block_key); in TEST_F()
139 handle = sim_cache->Lookup(compaction_access.block_key); in TEST_F()
174 auto handle = sim_cache->Lookup(access.block_key); in TEST_F()
238 handle = sim_cache->Lookup(kBlockKeyPrefix + std::to_string(i)); in TEST_F()
264 handle = sim_cache->Lookup(kBlockKeyPrefix + std::to_string(i)); in TEST_F()
292 handle = sim_cache->Lookup(kBlockKeyPrefix + std::to_string(i)); in TEST_F()
398 auto handle = sim_cache->Lookup("0_" + kRefKeyPrefix + key); in TEST_F()
421 auto handle = sim_cache->Lookup("0_" + kRefKeyPrefix + key); in TEST_F()
[all …]
Dsim_cache.cc177 Handle* h = key_only_cache_->Lookup(key); in Insert()
191 Handle* Lookup(const Slice& key, Statistics* stats) override { in Lookup() function in ROCKSDB_NAMESPACE::__anona55187990111::SimCacheImpl
192 Handle* h = key_only_cache_->Lookup(key); in Lookup()
206 return cache_->Lookup(key, stats); in Lookup()
Dcache_simulator.cc20 auto handle = sim_cache_->Lookup(lookup_key); in Admit()
42 auto handle = sim_cache_->Lookup(access.block_key); in Access()
98 auto handle = sim_cache_->Lookup(key); in AccessKVPair()
/rocksdb-6.9/utilities/persistent_cache/
Dhash_table_bench.cc48 virtual bool Lookup(const Key& key, Value* val) = 0;
114 bool status = impl_->Lookup(k, &s); in RunRead()
208 bool Lookup(const size_t& key, string* val) override { in Lookup() function in ROCKSDB_NAMESPACE::SimpleImpl
238 bool Lookup(const size_t& key, string* val) override { in Lookup() function in ROCKSDB_NAMESPACE::GranularLockImpl
Dblock_cache_tier.cc230 if (metadata_.Lookup(key, &lba)) { in InsertImpl()
266 Status BlockCacheTier::Lookup(const Slice& key, std::unique_ptr<char[]>* val, in Lookup() function in ROCKSDB_NAMESPACE::BlockCacheTier
272 status = metadata_.Lookup(key, &lba); in Lookup()
279 BlockCacheFile* const file = metadata_.Lookup(lba.cache_id_); in Lookup()
Dblock_cache_tier_metadata.h60 BlockCacheFile* Lookup(const uint32_t cache_id);
67 bool Lookup(const Slice& key, LBA* lba);
Dblock_cache_tier_metadata.cc17 BlockCacheFile* BlockCacheTierMetadata::Lookup(const uint32_t cache_id) { in Lookup() function in ROCKSDB_NAMESPACE::BlockCacheTierMetadata
47 bool BlockCacheTierMetadata::Lookup(const Slice& key, LBA* lba) { in Lookup() function in ROCKSDB_NAMESPACE::BlockCacheTierMetadata
Dvolatile_tier_impl.cc82 Status VolatileCacheTier::Lookup(const Slice& page_key, in Lookup() function in ROCKSDB_NAMESPACE::VolatileCacheTier
103 return next_tier()->Lookup(page_key, result, size); in Lookup()
Dpersistent_cache_tier.cc142 Status PersistentTieredCache::Lookup(const Slice& page_key, in Lookup() function in ROCKSDB_NAMESPACE::PersistentTieredCache
146 return tiers_.front()->Lookup(page_key, data, size); in Lookup()
Dpersistent_cache_tier.h261 virtual Status Lookup(const Slice& page_key, std::unique_ptr<char[]>* data,
304 Status Lookup(const Slice& page_key, std::unique_ptr<char[]>* data,
Dpersistent_cache_test.h164 if (!cache_->Lookup(key, &block, &block_size).ok()) {
171 ASSERT_OK(cache_->Lookup(key, &block, &block_size));
Dvolatile_tier_impl.h56 Status Lookup(const Slice& page_key, std::unique_ptr<char[]>* data,
Dblock_cache_tier.h61 Status Lookup(const Slice& key, std::unique_ptr<char[]>* data,
/rocksdb-6.9/table/
Dpersistent_cache_helper.cc62 Status s = cache_options.persistent_cache->Lookup(key, raw_data, &size); in LookupRawPage()
95 Status s = cache_options.persistent_cache->Lookup(key, &data, &size); in LookupUncompressedPage()
/rocksdb-6.9/include/rocksdb/
Dpersistent_cache.h44 virtual Status Lookup(const Slice& key, std::unique_ptr<char[]>* data,
Dcache.h191 virtual Handle* Lookup(const Slice& key, Statistics* stats = nullptr) = 0;
/rocksdb-6.9/table/block_based/
Ddata_block_hash_index.h122 uint8_t Lookup(const char* data, uint32_t map_offset, const Slice& key) const;
Ddata_block_hash_index.cc85 uint8_t DataBlockHashIndex::Lookup(const char* data, uint32_t map_offset, in Lookup() function in ROCKSDB_NAMESPACE::DataBlockHashIndex

12