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

Function garrow_array_is_in

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

* garrow_array_is_in: * @left: A left hand side #GArrowArray. * @right: A right hand side #GArrowArray. * @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 array. * * Since: 0.15.0 */

Source from the content-addressed store, hash-verified

5619 * Since: 0.15.0
5620 */
5621GArrowBooleanArray *
5622garrow_array_is_in(GArrowArray *left, GArrowArray *right, GError **error)
5623{
5624 auto arrow_left = garrow_array_get_raw(left);
5625 auto arrow_right = garrow_array_get_raw(right);
5626 auto arrow_is_in_datum = arrow::compute::IsIn(arrow_left, arrow_right);
5627 if (garrow::check(error, arrow_is_in_datum, "[array][is-in]")) {
5628 auto arrow_is_in_array = (*arrow_is_in_datum).make_array();
5629 return GARROW_BOOLEAN_ARRAY(garrow_array_new_raw(&arrow_is_in_array));
5630 } else {
5631 return NULL;
5632 }
5633}
5634
5635/**
5636 * garrow_array_is_in_chunked_array:

Callers

nothing calls this directly

Calls 5

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