| 45 | } |
| 46 | |
| 47 | int main(int argc, char* argv[]) { |
| 48 | uint64_t batchSize = 1024; |
| 49 | bool showMetrics = false; |
| 50 | orc::RowReaderOptions rowReaderOptions; |
| 51 | bool success = parseOptions(&argc, &argv, &batchSize, &rowReaderOptions, &showMetrics); |
| 52 | if (argc < 1 || !success) { |
| 53 | std::cerr << "Usage: orc-scan [options] <filename>...\n"; |
| 54 | printOptions(std::cerr); |
| 55 | std::cerr << "Scans and displays the row count of the ORC files.\n"; |
| 56 | return 1; |
| 57 | } |
| 58 | for (int i = 0; i < argc; ++i) { |
| 59 | try { |
| 60 | scanFile(std::cout, argv[i], batchSize, rowReaderOptions, showMetrics); |
| 61 | } catch (std::exception& ex) { |
| 62 | std::cerr << "Caught exception in " << argv[i] << ": " << ex.what() << "\n"; |
| 63 | return 1; |
| 64 | } |
| 65 | } |
| 66 | return 0; |
| 67 | } |
nothing calls this directly
no test coverage detected