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

Method Insert

be/src/util/cache/cache-internal.h:306–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 }
305
306 UniqueHandle Insert(UniquePendingHandle handle,
307 Cache::EvictionCallback* eviction_callback) override {
308 HandleBase* h_in = reinterpret_cast<HandleBase*>(DCHECK_NOTNULL(handle.release()));
309 HandleBase* h_out = shards_[Shard(h_in->hash())]->Insert(h_in, eviction_callback);
310 return UniqueHandle(reinterpret_cast<Cache::Handle*>(h_out),
311 Cache::HandleDeleter(this));
312 }
313
314 size_t MaxCharge() const override {
315 return shard_charge_limit_;

Callers

nothing calls this directly

Calls 4

hashMethod · 0.80
HandleDeleterClass · 0.70
releaseMethod · 0.45
InsertMethod · 0.45

Tested by

no test coverage detected