| 52 | } |
| 53 | |
| 54 | int main(int argc, char* argv[]) { |
| 55 | uint64_t batchSize; // not used |
| 56 | orc::RowReaderOptions rowReaderOptions; |
| 57 | bool showMetrics = false; |
| 58 | bool success = parseOptions(&argc, &argv, &batchSize, &rowReaderOptions, &showMetrics); |
| 59 | |
| 60 | if (argc < 1 || !success) { |
| 61 | std::cerr << "Usage: orc-contents [options] <filename>...\n"; |
| 62 | printOptions(std::cerr); |
| 63 | std::cerr << "Print contents of ORC files.\n"; |
| 64 | return 1; |
| 65 | } |
| 66 | for (int i = 0; i < argc; ++i) { |
| 67 | try { |
| 68 | printContents(argv[i], rowReaderOptions); |
| 69 | } catch (std::exception& ex) { |
| 70 | std::cerr << "Caught exception in " << argv[i] << ": " << ex.what() << "\n"; |
| 71 | return 1; |
| 72 | } |
| 73 | } |
| 74 | return 0; |
| 75 | } |
nothing calls this directly
no test coverage detected