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

Function garrow_array_is_in_chunked_array

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

* garrow_array_is_in_chunked_array: * @left: A left hand side #GArrowArray. * @right: A right hand side #GArrowChunkedArray. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable) (transfer full): The #GArrowBooleanArray * showing whether each element in the left array is contained * in right chunked array. * * Since: 0.15.0 */

Source from the content-addressed store, hash-verified

5645 * Since: 0.15.0
5646 */
5647GArrowBooleanArray *
5648garrow_array_is_in_chunked_array(GArrowArray *left,
5649 GArrowChunkedArray *right,
5650 GError **error)
5651{
5652 auto arrow_left = garrow_array_get_raw(left);
5653 auto arrow_right = garrow_chunked_array_get_raw(right);
5654 auto arrow_is_in_datum = arrow::compute::IsIn(arrow_left, arrow_right);
5655 if (garrow::check(error, arrow_is_in_datum, "[array][is-in][chunked-array]")) {
5656 auto arrow_is_in_array = (*arrow_is_in_datum).make_array();
5657 return GARROW_BOOLEAN_ARRAY(garrow_array_new_raw(&arrow_is_in_array));
5658 } else {
5659 return NULL;
5660 }
5661}
5662
5663/**
5664 * garrow_array_sort_indices:

Callers

nothing calls this directly

Calls 6

IsInFunction · 0.85
garrow_array_new_rawFunction · 0.85
make_arrayMethod · 0.80
garrow_array_get_rawFunction · 0.70
checkFunction · 0.70

Tested by

no test coverage detected