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

Function garrow_array_get_null_bitmap

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

* garrow_array_get_null_bitmap: * @array: A #GArrowArray. * * Returns: (transfer full) (nullable): The bitmap that indicates null * value indices for the array as #GArrowBuffer or %NULL when * garrow_array_get_n_nulls() returns 0. * * Since: 0.3.0 */

Source from the content-addressed store, hash-verified

1104 * Since: 0.3.0
1105 */
1106GArrowBuffer *
1107garrow_array_get_null_bitmap(GArrowArray *array)
1108{
1109 auto priv = GARROW_ARRAY_GET_PRIVATE(array);
1110 if (priv->null_bitmap) {
1111 g_object_ref(priv->null_bitmap);
1112 return priv->null_bitmap;
1113 }
1114
1115 auto arrow_array = garrow_array_get_raw(array);
1116 auto arrow_null_bitmap = arrow_array->null_bitmap();
1117 if (arrow_null_bitmap) {
1118 return garrow_buffer_new_raw(&arrow_null_bitmap);
1119 } else {
1120 return nullptr;
1121 }
1122}
1123
1124/**
1125 * garrow_array_get_value_data_type:

Callers

nothing calls this directly

Calls 1

garrow_array_get_rawFunction · 0.70

Tested by

no test coverage detected