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

Method CheckKeyExist

be/src/codegen/llvm-codegen-cache-test.cc:525–531  ·  view source on GitHub ↗

Return true if the provided key exists.

Source from the content-addressed store, hash-verified

523
524// Return true if the provided key exists.
525bool LlvmCodeGenCacheTest::CheckKeyExist(TCodeGenCacheMode::type mode, string key) {
526 CodeGenCacheKey cache_key;
527 CodeGenCacheEntry entry;
528 CodeGenCacheKeyConstructor::construct(key, &cache_key);
529 EXPECT_OK(codegen_cache_->Lookup(cache_key, mode, &entry, &codegen_obj_cache_));
530 return !entry.Empty();
531}
532
533// Return true if the provided engine exists.
534bool LlvmCodeGenCacheTest::CheckEngineExist(CodeGenObjectCache* cached_engine) {

Callers

nothing calls this directly

Calls 2

LookupMethod · 0.45
EmptyMethod · 0.45

Tested by

no test coverage detected