pub(crate) struct MaybeNullBufferBuilder {
nulls: NullBufferBuilder,
}Expand description
Builder for an (optional) null mask
Optimized for avoid creating the bitmask when all values are non-null
Fields§
§nulls: NullBufferBuilderNote this is an Arrow VALIDITY buffer (so it is false for nulls, true for non-nulls)
Implementations§
Source§impl MaybeNullBufferBuilder
impl MaybeNullBufferBuilder
Sourcepub fn append(&mut self, is_null: bool)
pub fn append(&mut self, is_null: bool)
Set the nullness of the next row to is_null
If value is true, the row is null.
If value is false, the row is non null
pub fn append_n(&mut self, n: usize, is_null: bool)
Sourcepub fn allocated_size(&self) -> usize
pub fn allocated_size(&self) -> usize
return the number of heap allocated bytes used by this structure to store boolean values
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MaybeNullBufferBuilder
impl RefUnwindSafe for MaybeNullBufferBuilder
impl Send for MaybeNullBufferBuilder
impl Sync for MaybeNullBufferBuilder
impl Unpin for MaybeNullBufferBuilder
impl UnwindSafe for MaybeNullBufferBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more