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

Function garrow_table_take_chunked_array

c_glib/arrow-glib/compute.cpp:5456–5474  ·  view source on GitHub ↗

* garrow_table_take_chunked_array: * @table: A #GArrowTable. * @indices: The indices of values to take. * @options: (nullable): A #GArrowTakeOptions. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable) (transfer full): The #GArrowTable taken from * an array of values at indices in chunked array or %NULL on error. * * Since: 0.16.0 */

Source from the content-addressed store, hash-verified

5454 * Since: 0.16.0
5455 */
5456GArrowTable *
5457garrow_table_take_chunked_array(GArrowTable *table,
5458 GArrowChunkedArray *indices,
5459 GArrowTakeOptions *options,
5460 GError **error)
5461{
5462 auto arrow_table = garrow_table_get_raw(table);
5463 auto arrow_indices = garrow_chunked_array_get_raw(indices);
5464 return garrow_take(
5465 arrow::Datum(arrow_table),
5466 arrow::Datum(arrow_indices),
5467 options,
5468 [](arrow::Datum arrow_datum) {
5469 auto arrow_taken_table = arrow_datum.table();
5470 return garrow_table_new_raw(&arrow_taken_table);
5471 },
5472 error,
5473 "[table][take][chunked-array]");
5474}
5475
5476/**
5477 * garrow_chunked_array_take:

Callers

nothing calls this directly

Calls 4

garrow_table_get_rawFunction · 0.85
garrow_takeFunction · 0.85
DatumFunction · 0.50

Tested by

no test coverage detected