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

Function garrow_boolean_array_invert

c_glib/arrow-glib/compute.cpp:5036–5047  ·  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

5034 * Since: 0.13.0
5035 */
5036GArrowBooleanArray *
5037garrow_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:

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