| 1717 | } |
| 1718 | |
| 1719 | Status AddMetadataRanges(const std::vector<int>& indices, |
| 1720 | std::vector<io::ReadRange>* ranges) { |
| 1721 | for (int index : indices) { |
| 1722 | ARROW_ASSIGN_OR_RAISE(FileBlock block, GetRecordBatchBlock(index)); |
| 1723 | ranges->push_back({block.offset, block.metadata_length}); |
| 1724 | } |
| 1725 | return Status::OK(); |
| 1726 | } |
| 1727 | |
| 1728 | Status CacheMetadata(const std::vector<int>& indices) { |
| 1729 | std::vector<io::ReadRange> ranges; |