| 890 | } |
| 891 | |
| 892 | std::shared_ptr<RowGroupReader> ParquetFileReader::RowGroup(int i) { |
| 893 | if (i >= metadata()->num_row_groups()) { |
| 894 | std::stringstream ss; |
| 895 | ss << "Trying to read row group " << i << " but file only has " |
| 896 | << metadata()->num_row_groups() << " row groups"; |
| 897 | throw ParquetException(ss.str()); |
| 898 | } |
| 899 | return contents_->GetRowGroup(i); |
| 900 | } |
| 901 | |
| 902 | void ParquetFileReader::PreBuffer(const std::vector<int>& row_groups, |
| 903 | const std::vector<int>& column_indices, |
no test coverage detected