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

Function garrow_chunked_array_take

c_glib/arrow-glib/compute.cpp:5488–5506  ·  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

5486 * Since: 0.16.0
5487 */
5488GArrowChunkedArray *
5489garrow_chunked_array_take(GArrowChunkedArray *chunked_array,
5490 GArrowArray *indices,
5491 GArrowTakeOptions *options,
5492 GError **error)
5493{
5494 auto arrow_chunked_array = garrow_chunked_array_get_raw(chunked_array);
5495 auto arrow_indices = garrow_array_get_raw(indices);
5496 return garrow_take(
5497 arrow::Datum(arrow_chunked_array),
5498 arrow::Datum(arrow_indices),
5499 options,
5500 [](arrow::Datum arrow_datum) {
5501 auto arrow_taken_chunked_array = arrow_datum.chunked_array();
5502 return garrow_chunked_array_new_raw(&arrow_taken_chunked_array);
5503 },
5504 error,
5505 "[chunked-array][take]");
5506}
5507
5508/**
5509 * 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