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

Method EvictedEntry

be/src/util/cache/cache-test.h:58–61  ·  view source on GitHub ↗

Implementation of the EvictionCallback interface. This maintains a record of all evictions, keys and values.

Source from the content-addressed store, hash-verified

56 // Implementation of the EvictionCallback interface. This maintains a record of all
57 // evictions, keys and values.
58 void EvictedEntry(Slice key, Slice val) override {
59 evicted_keys_.push_back(DecodeInt(key));
60 evicted_values_.push_back(DecodeInt(val));
61 }
62
63 // Lookup the key. Return the value on success or -1 on failure.
64 int Lookup(int key, Cache::LookupBehavior behavior = Cache::NORMAL) {

Callers 2

FreeEntryMethod · 0.45
CleanupThreadStateMethod · 0.45

Calls 2

push_backMethod · 0.80
DecodeIntFunction · 0.70

Tested by

no test coverage detected