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

Function main

tools/src/FileMemory.cc:95–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95int 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}

Callers

nothing calls this directly

Calls 3

parseOptionsFunction · 0.85
printOptionsFunction · 0.85
processFileFunction · 0.85

Tested by

no test coverage detected