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

Method MakeCacheEntries

cpp/src/arrow/io/caching.cc:165–174  ·  view source on GitHub ↗

Make cache entries for ranges

Source from the content-addressed store, hash-verified

163
164 // Make cache entries for ranges
165 virtual std::vector<RangeCacheEntry> MakeCacheEntries(
166 const std::vector<ReadRange>& ranges) {
167 std::vector<RangeCacheEntry> new_entries;
168 new_entries.reserve(ranges.size());
169 for (const auto& range : ranges) {
170 new_entries.emplace_back(range, file->ReadAsync(ctx, range.offset, range.length,
171 /*allow_short_read=*/false));
172 }
173 return new_entries;
174 }
175
176 // Add the given ranges to the cache, coalescing them where possible
177 virtual Status Cache(std::vector<ReadRange> ranges) {

Callers

nothing calls this directly

Calls 4

emplace_backMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
ReadAsyncMethod · 0.45

Tested by

no test coverage detected