Struct arrow_buffer::buffer::NullBuffer
source · pub struct NullBuffer { /* private fields */ }
Implementations§
source§impl NullBuffer
impl NullBuffer
sourcepub fn new(buffer: BooleanBuffer) -> Self
pub fn new(buffer: BooleanBuffer) -> Self
Create a new NullBuffer
computing the null count
sourcepub fn new_null(len: usize) -> Self
pub fn new_null(len: usize) -> Self
Create a new NullBuffer
of length len
where all values are null
sourcepub unsafe fn new_unchecked(buffer: BooleanBuffer, null_count: usize) -> Self
pub unsafe fn new_unchecked(buffer: BooleanBuffer, null_count: usize) -> Self
Create a new NullBuffer
with the provided buffer
and null_count
Safety
buffer
must contain null_count
0
bits
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the length of this NullBuffer
sourcepub fn offset(&self) -> usize
pub fn offset(&self) -> usize
Returns the offset of this NullBuffer
in bits
sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if this NullBuffer
is empty
sourcepub fn null_count(&self) -> usize
pub fn null_count(&self) -> usize
Returns the null count for this NullBuffer
sourcepub fn validity(&self) -> &[u8] ⓘ
pub fn validity(&self) -> &[u8] ⓘ
Returns the packed validity of this NullBuffer
not including any offset
sourcepub fn slice(&self, offset: usize, len: usize) -> Self
pub fn slice(&self, offset: usize, len: usize) -> Self
Slices this NullBuffer
by the provided offset
and length
sourcepub fn inner(&self) -> &BooleanBuffer
pub fn inner(&self) -> &BooleanBuffer
Returns the inner BooleanBuffer
Trait Implementations§
source§impl Clone for NullBuffer
impl Clone for NullBuffer
source§fn clone(&self) -> NullBuffer
fn clone(&self) -> NullBuffer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NullBuffer
impl Debug for NullBuffer
source§impl PartialEq<NullBuffer> for NullBuffer
impl PartialEq<NullBuffer> for NullBuffer
source§fn eq(&self, other: &NullBuffer) -> bool
fn eq(&self, other: &NullBuffer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.