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

Method WhenBuffered

cpp/src/parquet/file_reader.cc:420–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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