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:3793–3802  ·  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

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