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:1107–1123  ·  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

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