* 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 */
| 5690 | * Since: 0.15.0 |
| 5691 | */ |
| 5692 | GArrowBooleanArray * |
| 5693 | garrow_array_is_in_chunked_array(GArrowArray *left, |
| 5694 | GArrowChunkedArray *right, |
| 5695 | GError **error) |
| 5696 | { |
| 5697 | auto arrow_left = garrow_array_get_raw(left); |
| 5698 | auto arrow_right = garrow_chunked_array_get_raw(right); |
| 5699 | auto arrow_is_in_datum = arrow::compute::IsIn(arrow_left, arrow_right); |
| 5700 | if (garrow::check(error, arrow_is_in_datum, "[array][is-in][chunked-array]")) { |
| 5701 | auto arrow_is_in_array = (*arrow_is_in_datum).make_array(); |
| 5702 | return GARROW_BOOLEAN_ARRAY(garrow_array_new_raw(&arrow_is_in_array)); |
| 5703 | } else { |
| 5704 | return NULL; |
| 5705 | } |
| 5706 | } |
| 5707 | |
| 5708 | /** |
| 5709 | * garrow_array_sort_indices: |
nothing calls this directly
no test coverage detected