MCPcopy Create free account
hub / github.com/apache/arrow / Find

Method Find

cpp/src/arrow/util/cache_internal.h:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59 template <typename K>
60 Value* Find(K&& key) {
61 const auto it = map_.find(key);
62 if (it == map_.end()) {
63 return nullptr;
64 } else {
65 // Found => move item at front of the list
66 auto list_it = it->second;
67 items_.splice(items_.begin(), items_, list_it);
68 return &list_it->value;
69 }
70 }
71
72 template <typename K, typename V>
73 std::pair<bool, Value*> Replace(K&& key, V&& value) {

Callers 6

BenchmarkCacheLookupsFunction · 0.45
BenchmarkTrieLookupsFunction · 0.45
operator()Method · 0.45
TestTrieContentsFunction · 0.45
TESTFunction · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by 2

TestTrieContentsFunction · 0.36
TESTFunction · 0.36