* 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 */
| 6168 | * Since: 13.0.0 |
| 6169 | */ |
| 6170 | GArrowArray * |
| 6171 | garrow_run_end_encoded_array_decode(GArrowRunEndEncodedArray *array, GError **error) |
| 6172 | { |
| 6173 | auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array)); |
| 6174 | auto arrow_decoded_datum_result = arrow::compute::RunEndDecode(arrow_array); |
| 6175 | if (garrow::check(error, arrow_decoded_datum_result, [&]() { |
| 6176 | std::stringstream message; |
| 6177 | message << "[run-end-encoded-array][decode] <"; |
| 6178 | message << arrow_array->type()->ToString(); |
| 6179 | message << ">"; |
| 6180 | return message.str(); |
| 6181 | })) { |
| 6182 | auto arrow_decoded_array = (*arrow_decoded_datum_result).make_array(); |
| 6183 | return garrow_array_new_raw(&arrow_decoded_array); |
| 6184 | } else { |
| 6185 | return nullptr; |
| 6186 | } |
| 6187 | } |
| 6188 | |
| 6189 | enum { |
| 6190 | PROP_STRPTIME_OPTIONS_FORMAT = 1, |
nothing calls this directly
no test coverage detected