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

Function garrow_duration_array_new

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

* garrow_duration_array_new: * @data_type: The #GArrowDurationDataType. * @length: The number of elements. * @data: The binary data in Arrow format of the array. * @null_bitmap: (nullable): The bitmap that shows null elements. The * N-th element is null when the N-th bit is 0, not null otherwise. * If the array has no null elements, the bitmap must be %NULL and * @n_nulls is 0. * @n_

Source from the content-addressed store, hash-verified

3491 * Since: 23.0.0
3492 */
3493GArrowDurationArray *
3494garrow_duration_array_new(GArrowDurationDataType *data_type,
3495 gint64 length,
3496 GArrowBuffer *data,
3497 GArrowBuffer *null_bitmap,
3498 gint64 n_nulls)
3499{
3500 auto array =
3501 garrow_primitive_array_new<arrow::DurationType>(GARROW_DATA_TYPE(data_type),
3502 length,
3503 data,
3504 null_bitmap,
3505 n_nulls);
3506 return GARROW_DURATION_ARRAY(array);
3507}
3508
3509/**
3510 * garrow_duration_array_get_value:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected