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:6170–6187  ·  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

6168 * Since: 13.0.0
6169 */
6170GArrowArray *
6171garrow_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
6189enum {
6190 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