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:3847–3856  ·  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

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

Callers

nothing calls this directly

Calls 3

garrow_array_get_rawFunction · 0.70
GetValueMethod · 0.45

Tested by

no test coverage detected