MCPcopy Create free account
hub / github.com/apache/arrow / print_record_batch

Function print_record_batch

c_glib/example/read-file.c:68–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68static void
69print_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
86int
87main(int argc, char **argv)

Callers 1

mainFunction · 0.70

Tested by

no test coverage detected