| 66 | } |
| 67 | |
| 68 | static void |
| 69 | print_record_batch(GArrowRecordBatch *record_batch) |
| 70 | { |
| 71 | guint nth_column, n_columns; |
| 72 | |
| 73 | n_columns = garrow_record_batch_get_n_columns(record_batch); |
| 74 | for (nth_column = 0; nth_column < n_columns; nth_column++) { |
| 75 | GArrowArray *array; |
| 76 | |
| 77 | g_print("columns[%u](%s): ", |
| 78 | nth_column, |
| 79 | garrow_record_batch_get_column_name(record_batch, nth_column)); |
| 80 | array = garrow_record_batch_get_column_data(record_batch, nth_column); |
| 81 | print_array(array); |
| 82 | g_object_unref(array); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | int |
| 87 | main(int argc, char **argv) |
no test coverage detected