* 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 */
| 3683 | * Since: 19.0.0 |
| 3684 | */ |
| 3685 | GArrowDecimal32 * |
| 3686 | garrow_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 | |
| 3696 | G_DEFINE_TYPE(GArrowDecimal64Array, |
| 3697 | garrow_decimal64_array, |
nothing calls this directly
no test coverage detected