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

Method GetObjectCode

cpp/src/gandiva/cache.h:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 Cache() : Cache(GetCacheCapacity()) {}
49
50 ValueType GetObjectCode(const KeyType& cache_key) {
51 std::optional<ValueType> result;
52 std::lock_guard<std::mutex> lock(mtx_);
53 result = cache_.get(cache_key);
54 return result != std::nullopt ? *result : nullptr;
55 }
56
57 void PutObjectCode(const KeyType& cache_key, const ValueType& module) {
58 std::lock_guard<std::mutex> lock(mtx_);

Callers 4

MakeMethod · 0.80
MakeMethod · 0.80
TESTFunction · 0.80
getObjectMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 1

TESTFunction · 0.64