| 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 { |
nothing calls this directly
no test coverage detected