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

Function garrow_chunked_array_take

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

* garrow_chunked_array_take: * @chunked_array: A #GArrowChunkedArray. * @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 input array or %NULL on error. * * Since: 0.16.0 */

Source from the content-addressed store, hash-verified

5531 * Since: 0.16.0
5532 */
5533GArrowChunkedArray *
5534garrow_chunked_array_take(GArrowChunkedArray *chunked_array,
5535 GArrowArray *indices,
5536 GArrowTakeOptions *options,
5537 GError **error)
5538{
5539 auto arrow_chunked_array = garrow_chunked_array_get_raw(chunked_array);
5540 auto arrow_indices = garrow_array_get_raw(indices);
5541 return garrow_take(
5542 arrow::Datum(arrow_chunked_array),
5543 arrow::Datum(arrow_indices),
5544 options,
5545 [](arrow::Datum arrow_datum) {
5546 auto arrow_taken_chunked_array = arrow_datum.chunked_array();
5547 return garrow_chunked_array_new_raw(&arrow_taken_chunked_array);
5548 },
5549 error,
5550 "[chunked-array][take]");
5551}
5552
5553/**
5554 * garrow_chunked_array_take_chunked_array:

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