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

Method GetReadRanges

cpp/src/parquet/file_reader.cc:405–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403 }
404
405 Result<std::vector<::arrow::io::ReadRange>> GetReadRanges(
406 const std::vector<int>& row_groups, const std::vector<int>& column_indices,
407 int64_t hole_size_limit, int64_t range_size_limit) {
408 std::vector<::arrow::io::ReadRange> ranges;
409 for (int row_group : row_groups) {
410 for (int col : column_indices) {
411 ranges.push_back(
412 ComputeColumnChunkRange(file_metadata_.get(), source_size_, row_group, col));
413 }
414 }
415
416 return ::arrow::io::internal::CoalesceReadRanges(std::move(ranges), hole_size_limit,
417 range_size_limit);
418 }
419
420 Future<> WhenBuffered(const std::vector<int>& row_groups,
421 const std::vector<int>& column_indices) const {

Callers

nothing calls this directly

Calls 4

ComputeColumnChunkRangeFunction · 0.85
CoalesceReadRangesFunction · 0.85
push_backMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected