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

Function garrow_chunked_array_slice

c_glib/arrow-glib/chunked-array.cpp:359–367  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

357 * values with the base #GArrowChunkedArray.
358 */
359GArrowChunkedArray *
360garrow_chunked_array_slice(GArrowChunkedArray *chunked_array,
361 guint64 offset,
362 guint64 length)
363{
364 const auto arrow_chunked_array = garrow_chunked_array_get_raw(chunked_array);
365 auto arrow_sub_chunked_array = arrow_chunked_array->Slice(offset, length);
366 return garrow_chunked_array_new_raw(&arrow_sub_chunked_array);
367}
368
369/**
370 * garrow_chunked_array_to_string:

Callers

nothing calls this directly

Calls 3

SliceMethod · 0.45

Tested by

no test coverage detected