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

Function garrow_chunked_array_take_chunked_array

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

* garrow_chunked_array_take_chunked_array: * @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 chunked array or %NULL on error. * * Since:

Source from the content-addressed store, hash-verified

5518 * Since: 0.16.0
5519 */
5520GArrowChunkedArray *
5521garrow_chunked_array_take_chunked_array(GArrowChunkedArray *chunked_array,
5522 GArrowChunkedArray *indices,
5523 GArrowTakeOptions *options,
5524 GError **error)
5525{
5526 auto arrow_chunked_array = garrow_chunked_array_get_raw(chunked_array);
5527 auto arrow_indices = garrow_chunked_array_get_raw(indices);
5528 return garrow_take(
5529 arrow::Datum(arrow_chunked_array),
5530 arrow::Datum(arrow_indices),
5531 options,
5532 [](arrow::Datum arrow_datum) {
5533 auto arrow_taken_chunked_array = arrow_datum.chunked_array();
5534 return garrow_chunked_array_new_raw(&arrow_taken_chunked_array);
5535 },
5536 error,
5537 "[chunked-array][take][chunked-array]");
5538}
5539
5540/**
5541 * garrow_record_batch_take:

Callers

nothing calls this directly

Calls 5

garrow_takeFunction · 0.85
chunked_arrayMethod · 0.80
DatumFunction · 0.50

Tested by

no test coverage detected