* garrow_table_get_column_data: * @table: A #GArrowTable. * @i: The index of the target column. If it's negative, index is * counted backward from the end of the columns. `-1` means the last * column. * * Returns: (nullable) (transfer full): The i-th column's data in the table. * * Since: 0.15.0 */
| 508 | * Since: 0.15.0 |
| 509 | */ |
| 510 | GArrowChunkedArray * |
| 511 | garrow_table_get_column_data(GArrowTable *table, gint i) |
| 512 | { |
| 513 | const auto &arrow_table = garrow_table_get_raw(table); |
| 514 | if (!garrow_internal_index_adjust(i, arrow_table->num_columns())) { |
| 515 | return NULL; |
| 516 | } |
| 517 | auto arrow_column = arrow_table->column(i); |
| 518 | return garrow_chunked_array_new_raw(&arrow_column); |
| 519 | } |
| 520 | |
| 521 | /** |
| 522 | * garrow_table_get_n_columns: |
nothing calls this directly
no test coverage detected