| 61 | } |
| 62 | |
| 63 | void PrintColumnNames(std::shared_ptr<arrow::RecordBatch> record_batch) { |
| 64 | // Print each column name for the record batch. |
| 65 | std::cout << std::setfill(' ') << std::setw(7) << ""; |
| 66 | for (std::int64_t col = 0; col < record_batch->num_columns(); ++col) { |
| 67 | std::cout << std::left << std::setw(16) << record_batch->column_name(col); |
| 68 | } |
| 69 | std::cout << "\n"; |
| 70 | } |
| 71 | |
| 72 | void ProcessRecordBatch(std::shared_ptr<arrow::Schema> schema, |
| 73 | std::shared_ptr<arrow::RecordBatch> record_batch, |