MCPcopy Create free account
hub / github.com/apache/orc / cacheRanges

Method cacheRanges

c++/src/Reader.cc:1815–1821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1813 }
1814
1815 void FileContents::cacheRanges(std::vector<ReadRange> ranges) {
1816 std::lock_guard<std::mutex> lock(readCacheMutex);
1817 if (!readCache) {
1818 readCache = std::make_shared<ReadRangeCache>(stream.get(), cacheOptions, pool, readerMetrics);
1819 }
1820 readCache->cache(std::move(ranges));
1821 }
1822
1823 void FileContents::evictCache(uint64_t boundary) {
1824 std::lock_guard<std::mutex> lock(readCacheMutex);

Callers 3

loadStripeIndexMethod · 0.80
startNextStripeMethod · 0.80
preBufferMethod · 0.80

Calls 2

cacheMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected