| 93 | } |
| 94 | |
| 95 | int main(int argc, char* argv[]) { |
| 96 | uint64_t batchSize = 1000; |
| 97 | orc::RowReaderOptions rowReaderOptions; |
| 98 | bool showMetrics = false; |
| 99 | bool success = parseOptions(&argc, &argv, &batchSize, &rowReaderOptions, &showMetrics); |
| 100 | if (argc < 1 || !success) { |
| 101 | std::cerr << "Usage: orc-memory [options] <filename>...\n"; |
| 102 | printOptions(std::cerr); |
| 103 | std::cerr << "Estimate the memory footprint for reading ORC files\n"; |
| 104 | return 1; |
| 105 | } |
| 106 | for (int i = 0; i < argc; ++i) { |
| 107 | try { |
| 108 | processFile(argv[i], rowReaderOptions, batchSize); |
| 109 | } catch (std::exception& ex) { |
| 110 | std::cerr << "Caught exception: " << ex.what() << "\n"; |
| 111 | return 1; |
| 112 | } |
| 113 | } |
| 114 | return 0; |
| 115 | } |
nothing calls this directly
no test coverage detected