* 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 */
| 5079 | * Since: 0.13.0 |
| 5080 | */ |
| 5081 | GArrowBooleanArray * |
| 5082 | garrow_boolean_array_invert(GArrowBooleanArray *array, GError **error) |
| 5083 | { |
| 5084 | auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array)); |
| 5085 | auto arrow_inverted_datum = arrow::compute::Invert(arrow_array); |
| 5086 | if (garrow::check(error, arrow_inverted_datum, "[boolean-array][invert]")) { |
| 5087 | auto arrow_inverted_array = (*arrow_inverted_datum).make_array(); |
| 5088 | return GARROW_BOOLEAN_ARRAY(garrow_array_new_raw(&arrow_inverted_array)); |
| 5089 | } else { |
| 5090 | return NULL; |
| 5091 | } |
| 5092 | } |
| 5093 | |
| 5094 | /** |
| 5095 | * garrow_boolean_array_and: |
nothing calls this directly
no test coverage detected