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

Function garrow_array_take_chunked_array

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

* garrow_array_take_chunked_array: * @array: A #GArrowArray. * @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 #GArrowChunkedArray 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

5435 * Since: 0.16.0
5436 */
5437GArrowChunkedArray *
5438garrow_array_take_chunked_array(GArrowArray *array,
5439 GArrowChunkedArray *indices,
5440 GArrowTakeOptions *options,
5441 GError **error)
5442{
5443 auto arrow_array = garrow_array_get_raw(array);
5444 auto arrow_indices = garrow_chunked_array_get_raw(indices);
5445 return garrow_take(
5446 arrow::Datum(arrow_array),
5447 arrow::Datum(arrow_indices),
5448 options,
5449 [](arrow::Datum arrow_datum) {
5450 auto arrow_taken_chunked_array = arrow_datum.chunked_array();
5451 return garrow_chunked_array_new_raw(&arrow_taken_chunked_array);
5452 },
5453 error,
5454 "[array][take][chunked-array]");
5455}
5456
5457/**
5458 * garrow_table_take:

Callers

nothing calls this directly

Calls 6

garrow_takeFunction · 0.85
chunked_arrayMethod · 0.80
garrow_array_get_rawFunction · 0.70
DatumFunction · 0.50

Tested by

no test coverage detected