* garrow_boolean_array_or: * @left: A left hand side #GArrowBooleanArray. * @right: A right hand side #GArrowBooleanArray. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full): The element-wise OR operated boolean array. * * It should be freed with g_object_unref() when no longer needed. * * Since: 0.13.0 */
| 5087 | * Since: 0.13.0 |
| 5088 | */ |
| 5089 | GArrowBooleanArray * |
| 5090 | garrow_boolean_array_or(GArrowBooleanArray *left, |
| 5091 | GArrowBooleanArray *right, |
| 5092 | GError **error) |
| 5093 | { |
| 5094 | auto arrow_left = garrow_array_get_raw(GARROW_ARRAY(left)); |
| 5095 | auto arrow_right = garrow_array_get_raw(GARROW_ARRAY(right)); |
| 5096 | auto arrow_operated_datum = arrow::compute::Or(arrow_left, arrow_right); |
| 5097 | if (garrow::check(error, arrow_operated_datum, "[boolean-array][or]")) { |
| 5098 | auto arrow_operated_array = (*arrow_operated_datum).make_array(); |
| 5099 | return GARROW_BOOLEAN_ARRAY(garrow_array_new_raw(&arrow_operated_array)); |
| 5100 | } else { |
| 5101 | return NULL; |
| 5102 | } |
| 5103 | } |
| 5104 | |
| 5105 | /** |
| 5106 | * garrow_boolean_array_xor: |
nothing calls this directly
no test coverage detected