Struct arrow_array::builder::NullBuilder
source · pub struct NullBuilder { /* private fields */ }
Expand description
Implementations§
source§impl NullBuilder
impl NullBuilder
sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates a new null builder with space for capacity
elements without re-allocating
sourcepub fn capacity(&self) -> usize
pub fn capacity(&self) -> usize
Returns the capacity of this builder measured in slots of type T
sourcepub fn append_null(&mut self)
pub fn append_null(&mut self)
Appends a null slot into the builder
sourcepub fn append_nulls(&mut self, n: usize)
pub fn append_nulls(&mut self, n: usize)
Appends n
null
s into the builder.
sourcepub fn append_empty_value(&mut self)
pub fn append_empty_value(&mut self)
Appends a null slot into the builder
sourcepub fn append_empty_values(&mut self, n: usize)
pub fn append_empty_values(&mut self, n: usize)
Appends n
null
s into the builder.
sourcepub fn finish_cloned(&self) -> NullArray
pub fn finish_cloned(&self) -> NullArray
Builds the NullArray without resetting the builder.
Trait Implementations§
source§impl ArrayBuilder for NullBuilder
impl ArrayBuilder for NullBuilder
source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Returns the builder as a mutable Any
reference.
source§fn finish_cloned(&self) -> ArrayRef
fn finish_cloned(&self) -> ArrayRef
Builds the array without resetting the builder.
source§impl Debug for NullBuilder
impl Debug for NullBuilder
Auto Trait Implementations§
impl Freeze for NullBuilder
impl RefUnwindSafe for NullBuilder
impl Send for NullBuilder
impl Sync for NullBuilder
impl Unpin for NullBuilder
impl UnwindSafe for NullBuilder
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