Struct arrow_data::Bitmap
source · pub struct Bitmap { /* private fields */ }
Expand description
Defines a bitmap, which is used to track which values in an Arrow array are null.
This is called a “validity bitmap” in the Arrow documentation.
Implementations§
source§impl Bitmap
impl Bitmap
pub fn new(num_bits: usize) -> Self
pub fn is_empty(&self) -> bool
pub fn is_set(&self, i: usize) -> bool
pub fn buffer(&self) -> &Buffer
pub fn buffer_ref(&self) -> &Buffer
pub fn into_buffer(self) -> Buffer
sourcepub fn get_buffer_memory_size(&self) -> usize
pub fn get_buffer_memory_size(&self) -> usize
sourcepub fn get_array_memory_size(&self) -> usize
pub fn get_array_memory_size(&self) -> usize
Returns the total number of bytes of memory occupied
physically by this Bitmap and its Buffer
s.
Equivalent to: size_of_val(self)
+ Self::get_buffer_memory_size