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

Function main

tools/src/FileScan.cc:47–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47int 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}

Callers

nothing calls this directly

Calls 3

parseOptionsFunction · 0.85
printOptionsFunction · 0.85
scanFileFunction · 0.85

Tested by

no test coverage detected