* 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 */
| 5619 | * Since: 0.15.0 |
| 5620 | */ |
| 5621 | GArrowBooleanArray * |
| 5622 | garrow_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: |
nothing calls this directly
no test coverage detected