| 1708 | } |
| 1709 | |
| 1710 | Status AddDictionaryRanges(std::vector<io::ReadRange>* ranges) const { |
| 1711 | // Adds all dictionaries to the range cache |
| 1712 | for (int i = 0; i < num_dictionaries(); ++i) { |
| 1713 | ARROW_ASSIGN_OR_RAISE(FileBlock block, GetDictionaryBlock(i)); |
| 1714 | ranges->push_back({block.offset, block.metadata_length + block.body_length}); |
| 1715 | } |
| 1716 | return Status::OK(); |
| 1717 | } |
| 1718 | |
| 1719 | Status AddMetadataRanges(const std::vector<int>& indices, |
| 1720 | std::vector<io::ReadRange>* ranges) { |