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

Method WhenBuffered

cpp/src/parquet/file_reader.cc:421–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419 }
420
421 Future<> WhenBuffered(const std::vector<int>& row_groups,
422 const std::vector<int>& column_indices) const {
423 if (!cached_source_) {
424 return Status::Invalid("Must call PreBuffer before WhenBuffered");
425 }
426 std::vector<::arrow::io::ReadRange> ranges;
427 for (int row : row_groups) {
428 for (int col : column_indices) {
429 ranges.push_back(
430 ComputeColumnChunkRange(file_metadata_.get(), source_size_, row, col));
431 }
432 }
433 return cached_source_->WaitFor(ranges);
434 }
435
436 // Metadata/footer parsing. Divided up to separate sync/async paths, and to use
437 // exceptions for error handling (with the async path converting to Future/Status).

Callers

nothing calls this directly

Calls 5

ComputeColumnChunkRangeFunction · 0.85
push_backMethod · 0.80
InvalidFunction · 0.50
getMethod · 0.45
WaitForMethod · 0.45

Tested by

no test coverage detected