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

Function garrow_decimal128_array_get_value

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

* garrow_decimal128_array_get_value: * @array: A #GArrowDecimal128Array. * @i: The index of the target value. * * Returns: (transfer full): The @i-th value. * * Since: 0.10.0 */

Source from the content-addressed store, hash-verified

3790 * Since: 0.10.0
3791 */
3792GArrowDecimal128 *
3793garrow_decimal128_array_get_value(GArrowDecimal128Array *array, gint64 i)
3794{
3795 auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array));
3796 auto arrow_decimal128_array =
3797 std::static_pointer_cast<arrow::Decimal128Array>(arrow_array);
3798 auto arrow_decimal128 =
3799 std::make_shared<arrow::Decimal128>(arrow_decimal128_array->GetValue(i));
3800 return garrow_decimal128_new_raw(&arrow_decimal128);
3801}
3802
3803G_DEFINE_TYPE(GArrowDecimal256Array,
3804 garrow_decimal256_array,

Callers

nothing calls this directly

Calls 3

garrow_array_get_rawFunction · 0.70
GetValueMethod · 0.45

Tested by

no test coverage detected