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:3738–3747  ·  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

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