MCPcopy Create free account
hub / github.com/apache/impala / Destroy

Method Destroy

be/src/util/lru-multi-cache.inline.h:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88template <typename KeyType, typename ValueType>
89void LruMultiCache<KeyType, ValueType>::Accessor::Destroy() {
90 /// Nullptr check as it has to be dereferenced to get the cache reference
91 /// No nullptr check is needed inside LruMultiCache::Destroy()
92 if (p_value_internal_) {
93 LruMultiCache& cache = p_value_internal_->cache;
94 cache.Destroy(p_value_internal_);
95 p_value_internal_ = nullptr;
96 }
97}
98
99template <typename KeyType, typename ValueType>
100LruMultiCache<KeyType, ValueType>::LruMultiCache(size_t capacity)

Callers 1

TESTFunction · 0.45

Calls 3

IsAvailableMethod · 0.80
eraseMethod · 0.80
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.36