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

Function garrow_decimal64_array_get_value

c_glib/arrow-glib/basic-array.cpp:3739–3748  ·  view source on GitHub ↗

* garrow_decimal64_array_get_value: * @array: A #GArrowDecimal64Array. * @i: The index of the target value. * * Returns: (transfer full): The @i-th value. * * Since: 19.0.0 */

Source from the content-addressed store, hash-verified

3737 * Since: 19.0.0
3738 */
3739GArrowDecimal64 *
3740garrow_decimal64_array_get_value(GArrowDecimal64Array *array, gint64 i)
3741{
3742 auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array));
3743 auto arrow_decimal64_array =
3744 std::static_pointer_cast<arrow::Decimal64Array>(arrow_array);
3745 auto arrow_decimal64 =
3746 std::make_shared<arrow::Decimal64>(arrow_decimal64_array->GetValue(i));
3747 return garrow_decimal64_new_raw(&arrow_decimal64);
3748}
3749
3750G_DEFINE_TYPE(GArrowDecimal128Array,
3751 garrow_decimal128_array,

Callers

nothing calls this directly

Calls 3

garrow_decimal64_new_rawFunction · 0.85
garrow_array_get_rawFunction · 0.70
GetValueMethod · 0.45

Tested by

no test coverage detected