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:5501–5519  ·  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

5499 * Since: 0.16.0
5500 */
5501GArrowTable *
5502garrow_table_take_chunked_array(GArrowTable *table,
5503 GArrowChunkedArray *indices,
5504 GArrowTakeOptions *options,
5505 GError **error)
5506{
5507 auto arrow_table = garrow_table_get_raw(table);
5508 auto arrow_indices = garrow_chunked_array_get_raw(indices);
5509 return garrow_take(
5510 arrow::Datum(arrow_table),
5511 arrow::Datum(arrow_indices),
5512 options,
5513 [](arrow::Datum arrow_datum) {
5514 auto arrow_taken_table = arrow_datum.table();
5515 return garrow_table_new_raw(&arrow_taken_table);
5516 },
5517 error,
5518 "[table][take][chunked-array]");
5519}
5520
5521/**
5522 * 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