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

Function garrow_table_get_column_data

c_glib/arrow-glib/table.cpp:510–519  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

508 * Since: 0.15.0
509 */
510GArrowChunkedArray *
511garrow_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:

Callers

nothing calls this directly

Calls 5

garrow_table_get_rawFunction · 0.85
num_columnsMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected