* garrow_run_end_encoded_array_decode: * @array: A #GArrowRunEndEncodeArray to be decoded. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable) (transfer full): * A newly decoded #GArrowArray for the @array on success, * %NULL on error. * * Since: 13.0.0 */
| 6213 | * Since: 13.0.0 |
| 6214 | */ |
| 6215 | GArrowArray * |
| 6216 | garrow_run_end_encoded_array_decode(GArrowRunEndEncodedArray *array, GError **error) |
| 6217 | { |
| 6218 | auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array)); |
| 6219 | auto arrow_decoded_datum_result = arrow::compute::RunEndDecode(arrow_array); |
| 6220 | if (garrow::check(error, arrow_decoded_datum_result, [&]() { |
| 6221 | std::stringstream message; |
| 6222 | message << "[run-end-encoded-array][decode] <"; |
| 6223 | message << arrow_array->type()->ToString(); |
| 6224 | message << ">"; |
| 6225 | return message.str(); |
| 6226 | })) { |
| 6227 | auto arrow_decoded_array = (*arrow_decoded_datum_result).make_array(); |
| 6228 | return garrow_array_new_raw(&arrow_decoded_array); |
| 6229 | } else { |
| 6230 | return nullptr; |
| 6231 | } |
| 6232 | } |
| 6233 | |
| 6234 | enum { |
| 6235 | PROP_STRPTIME_OPTIONS_FORMAT = 1, |
nothing calls this directly
no test coverage detected