| 1726 | } |
| 1727 | |
| 1728 | Status CacheMetadata(const std::vector<int>& indices) { |
| 1729 | std::vector<io::ReadRange> ranges; |
| 1730 | if (!read_dictionaries_) { |
| 1731 | RETURN_NOT_OK(AddDictionaryRanges(&ranges)); |
| 1732 | } |
| 1733 | RETURN_NOT_OK(AddMetadataRanges(indices, &ranges)); |
| 1734 | return metadata_cache_->Cache(std::move(ranges)); |
| 1735 | } |
| 1736 | |
| 1737 | Status EnsureDictionaryReadStarted() { |
| 1738 | if (!dictionary_load_finished_.is_valid()) { |