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

Function garrow_array_slice

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

* garrow_array_slice: * @array: A #GArrowArray. * @offset: The offset of sub #GArrowArray. * @length: The length of sub #GArrowArray. * * Returns: (transfer full): The sub #GArrowArray. It covers only from * `offset` to `offset + length` range. The sub #GArrowArray shares * values with the base #GArrowArray. */

Source from the content-addressed store, hash-verified

1171 * values with the base #GArrowArray.
1172 */
1173GArrowArray *
1174garrow_array_slice(GArrowArray *array, gint64 offset, gint64 length)
1175{
1176 const auto arrow_array = garrow_array_get_raw(array);
1177 auto arrow_sub_array = arrow_array->Slice(offset, length);
1178 return garrow_array_new_raw(&arrow_sub_array,
1179 "array",
1180 &arrow_sub_array,
1181 "parent",
1182 array,
1183 NULL);
1184}
1185
1186/**
1187 * garrow_array_to_string:

Callers

nothing calls this directly

Calls 3

garrow_array_new_rawFunction · 0.85
garrow_array_get_rawFunction · 0.70
SliceMethod · 0.45

Tested by

no test coverage detected