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

Function garrow_decimal256_array_get_value

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

* garrow_decimal256_array_get_value: * @array: A #GArrowDecimal256Array. * @i: The index of the target value. * * Returns: (transfer full): The @i-th value. * * Since: 3.0.0 */

Source from the content-addressed store, hash-verified

3844 * Since: 3.0.0
3845 */
3846GArrowDecimal256 *
3847garrow_decimal256_array_get_value(GArrowDecimal256Array *array, gint64 i)
3848{
3849 auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array));
3850 auto arrow_decimal256_array =
3851 std::static_pointer_cast<arrow::Decimal256Array>(arrow_array);
3852 auto arrow_decimal256 =
3853 std::make_shared<arrow::Decimal256>(arrow_decimal256_array->GetValue(i));
3854 return garrow_decimal256_new_raw(&arrow_decimal256);
3855}
3856
3857typedef struct GArrowExtensionArrayPrivate_
3858{

Callers

nothing calls this directly

Calls 3

garrow_array_get_rawFunction · 0.70
GetValueMethod · 0.45

Tested by

no test coverage detected