MCPcopy Index your code
hub / github.com/apache/orc / main

Function main

tools/src/FileContents.cc:54–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54int 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}

Callers

nothing calls this directly

Calls 3

parseOptionsFunction · 0.85
printOptionsFunction · 0.85
printContentsFunction · 0.85

Tested by

no test coverage detected