MCPcopy Create free account
hub / github.com/apache/arrow / garrow_boolean_array_invert

Function garrow_boolean_array_invert

c_glib/arrow-glib/compute.cpp:5081–5092  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

5079 * Since: 0.13.0
5080 */
5081GArrowBooleanArray *
5082garrow_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:

Callers

nothing calls this directly

Calls 4

garrow_array_new_rawFunction · 0.85
make_arrayMethod · 0.80
garrow_array_get_rawFunction · 0.70
checkFunction · 0.70

Tested by

no test coverage detected