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:3684–3693  ·  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

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