* garrow_boolean_array_and: * @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 AND operated boolean array. * * It should be freed with g_object_unref() when no longer needed. * * Since: 0.13.0 */
| 5059 | * Since: 0.13.0 |
| 5060 | */ |
| 5061 | GArrowBooleanArray * |
| 5062 | garrow_boolean_array_and(GArrowBooleanArray *left, |
| 5063 | GArrowBooleanArray *right, |
| 5064 | GError **error) |
| 5065 | { |
| 5066 | auto arrow_left = garrow_array_get_raw(GARROW_ARRAY(left)); |
| 5067 | auto arrow_right = garrow_array_get_raw(GARROW_ARRAY(right)); |
| 5068 | auto arrow_operated_datum = arrow::compute::And(arrow_left, arrow_right); |
| 5069 | if (garrow::check(error, arrow_operated_datum, "[boolean-array][and]")) { |
| 5070 | auto arrow_operated_array = (*arrow_operated_datum).make_array(); |
| 5071 | return GARROW_BOOLEAN_ARRAY(garrow_array_new_raw(&arrow_operated_array)); |
| 5072 | } else { |
| 5073 | return NULL; |
| 5074 | } |
| 5075 | } |
| 5076 | |
| 5077 | /** |
| 5078 | * garrow_boolean_array_or: |
nothing calls this directly
no test coverage detected