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

Function garrow_decimal32_array_get_value

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

* garrow_decimal32_array_get_value: * @array: A #GArrowDecimal32Array. * @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

3683 * Since: 19.0.0
3684 */
3685GArrowDecimal32 *
3686garrow_decimal32_array_get_value(GArrowDecimal32Array *array, gint64 i)
3687{
3688 auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array));
3689 auto arrow_decimal32_array =
3690 std::static_pointer_cast<arrow::Decimal32Array>(arrow_array);
3691 auto arrow_decimal32 =
3692 std::make_shared<arrow::Decimal32>(arrow_decimal32_array->GetValue(i));
3693 return garrow_decimal32_new_raw(&arrow_decimal32);
3694}
3695
3696G_DEFINE_TYPE(GArrowDecimal64Array,
3697 garrow_decimal64_array,

Callers

nothing calls this directly

Calls 2

garrow_array_get_rawFunction · 0.70
GetValueMethod · 0.45

Tested by

no test coverage detected