* 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 */
| 5645 | * Since: 0.15.0 |
| 5646 | */ |
| 5647 | GArrowBooleanArray * |
| 5648 | garrow_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: |
nothing calls this directly
no test coverage detected