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

Method LookupFromCache

be/src/kudu/util/file_cache.cc:146–149  ·  view source on GitHub ↗

Retrieves a pointer to an open file object from the file cache with the filename as the cache key. Returns a handle to the looked up entry. The handle may or may not contain an open file, depending on whether the cache hit or missed.

Source from the content-addressed store, hash-verified

144 // Returns a handle to the looked up entry. The handle may or may not contain
145 // an open file, depending on whether the cache hit or missed.
146 ScopedOpenedDescriptor<FileType> LookupFromCache() const {
147 return ScopedOpenedDescriptor<FileType>(
148 this, cache()->Lookup(filename(), Cache::EXPECT_IN_CACHE));
149 }
150
151 // Mark this descriptor as to-be-deleted later.
152 void MarkDeleted() {

Callers 3

ReopenFileIfNecessaryMethod · 0.80
ReopenFileIfNecessaryMethod · 0.80
MapToDebugStringMethod · 0.80

Calls 1

LookupMethod · 0.45

Tested by

no test coverage detected