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

Method Lookup

be/src/kudu/util/cache-test.cc:83–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 int Lookup(int key) {
84 auto handle(cache_->Lookup(EncodeInt(key), Cache::EXPECT_IN_CACHE));
85 return handle ? DecodeInt(cache_->Value(handle)) : -1;
86 }
87
88 void Insert(int key, int value, int charge = 1) {
89 std::string key_str = EncodeInt(key);

Callers 1

TEST_PFunction · 0.45

Calls 3

EncodeIntFunction · 0.70
DecodeIntFunction · 0.70
ValueMethod · 0.45

Tested by

no test coverage detected