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

Function garrow_run_end_encoded_array_decode

c_glib/arrow-glib/compute.cpp:6215–6232  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

6213 * Since: 13.0.0
6214 */
6215GArrowArray *
6216garrow_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
6234enum {
6235 PROP_STRPTIME_OPTIONS_FORMAT = 1,

Callers

nothing calls this directly

Calls 8

RunEndDecodeFunction · 0.85
garrow_array_new_rawFunction · 0.85
strMethod · 0.80
make_arrayMethod · 0.80
garrow_array_get_rawFunction · 0.70
checkFunction · 0.70
ToStringMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected