| 1345 | } |
| 1346 | |
| 1347 | Status FileReaderImpl::GetColumn(int i, FileColumnIteratorFactory iterator_factory, |
| 1348 | std::unique_ptr<ColumnReader>* out) { |
| 1349 | RETURN_NOT_OK(BoundsCheckColumn(i)); |
| 1350 | auto ctx = std::make_shared<ReaderContext>(); |
| 1351 | ctx->reader = reader_.get(); |
| 1352 | ctx->pool = pool_; |
| 1353 | ctx->iterator_factory = iterator_factory; |
| 1354 | ctx->filter_leaves = false; |
| 1355 | ctx->reader_properties = &reader_properties_; |
| 1356 | std::unique_ptr<ColumnReaderImpl> result; |
| 1357 | RETURN_NOT_OK(GetReader(manifest_.schema_fields[i], ctx, &result)); |
| 1358 | *out = std::move(result); |
| 1359 | return Status::OK(); |
| 1360 | } |
| 1361 | |
| 1362 | Result<std::shared_ptr<Table>> FileReaderImpl::ReadRowGroups( |
| 1363 | const std::vector<int>& row_groups, const std::vector<int>& column_indices) { |