| 21 | #include <getopt.h> |
| 22 | |
| 23 | void printOptions(std::ostream& out) { |
| 24 | out << "Options:\n" |
| 25 | << "\t-h --help\n" |
| 26 | << "\t-c --columns\t\tComma separated list of top-level column fields\n" |
| 27 | << "\t-t --columnTypeIds\tComma separated list of column type ids\n" |
| 28 | << "\t-n --columnNames\tComma separated list of column names\n" |
| 29 | << "\t-b --batch\t\tBatch size for reading\n" |
| 30 | << "\t-m --metrics\t\tShow metrics for reading\n"; |
| 31 | } |
| 32 | |
| 33 | bool parseOptions(int* argc, char** argv[], uint64_t* batchSize, |
| 34 | orc::RowReaderOptions* rowReaderOpts, bool* showMetrics) { |