| 643 | |
| 644 | |
| 645 | void ArrowReader::done(PointTableRef table) |
| 646 | { |
| 647 | if (m_formatType == arrowsupport::Feather) |
| 648 | { |
| 649 | |
| 650 | } |
| 651 | else if (m_formatType == arrowsupport::Parquet) |
| 652 | { |
| 653 | |
| 654 | auto result = m_parquetReader->Close(); |
| 655 | if (!result.ok()) |
| 656 | { |
| 657 | std::stringstream msg; |
| 658 | msg << "Unable to read next batch for file '" << m_filename << "' with message '" |
| 659 | << result.ToString() <<"'"; |
| 660 | throwError(msg.str()); |
| 661 | } |
| 662 | |
| 663 | } |
| 664 | |
| 665 | auto result = m_file->Close(); |
| 666 | |
| 667 | |
| 668 | |
| 669 | |
| 670 | } |
| 671 | |
| 672 | |
| 673 | } // namespace pdal |