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:5565–5583  ·  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

5563 * Since: 0.16.0
5564 */
5565GArrowChunkedArray *
5566garrow_chunked_array_take_chunked_array(GArrowChunkedArray *chunked_array,
5567 GArrowChunkedArray *indices,
5568 GArrowTakeOptions *options,
5569 GError **error)
5570{
5571 auto arrow_chunked_array = garrow_chunked_array_get_raw(chunked_array);
5572 auto arrow_indices = garrow_chunked_array_get_raw(indices);
5573 return garrow_take(
5574 arrow::Datum(arrow_chunked_array),
5575 arrow::Datum(arrow_indices),
5576 options,
5577 [](arrow::Datum arrow_datum) {
5578 auto arrow_taken_chunked_array = arrow_datum.chunked_array();
5579 return garrow_chunked_array_new_raw(&arrow_taken_chunked_array);
5580 },
5581 error,
5582 "[chunked-array][take][chunked-array]");
5583}
5584
5585/**
5586 * 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