* garrow_boolean_array_invert: * @array: A #GArrowBooleanArray. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full): The element-wise inverted boolean array. * * It should be freed with g_object_unref() when no longer needed. * * Since: 0.13.0 */
| 5034 | * Since: 0.13.0 |
| 5035 | */ |
| 5036 | GArrowBooleanArray * |
| 5037 | garrow_boolean_array_invert(GArrowBooleanArray *array, GError **error) |
| 5038 | { |
| 5039 | auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array)); |
| 5040 | auto arrow_inverted_datum = arrow::compute::Invert(arrow_array); |
| 5041 | if (garrow::check(error, arrow_inverted_datum, "[boolean-array][invert]")) { |
| 5042 | auto arrow_inverted_array = (*arrow_inverted_datum).make_array(); |
| 5043 | return GARROW_BOOLEAN_ARRAY(garrow_array_new_raw(&arrow_inverted_array)); |
| 5044 | } else { |
| 5045 | return NULL; |
| 5046 | } |
| 5047 | } |
| 5048 | |
| 5049 | /** |
| 5050 | * garrow_boolean_array_and: |
nothing calls this directly
no test coverage detected