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

Method GetReadRanges

cpp/src/parquet/file_reader.cc:406–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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