Struct arrow::array::builder::NullBuilder
source · pub struct NullBuilder { /* private fields */ }
Expand description
Implementations§
source§impl NullBuilder
impl NullBuilder
sourcepub fn new() -> NullBuilder
pub fn new() -> NullBuilder
Creates a new null builder
sourcepub fn with_capacity(capacity: usize) -> NullBuilder
pub fn with_capacity(capacity: usize) -> NullBuilder
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 + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Returns the builder as a mutable Any
reference.
source§fn into_box_any(self: Box<NullBuilder>) -> Box<dyn Any>
fn into_box_any(self: Box<NullBuilder>) -> Box<dyn Any>
Returns the boxed builder as a box of Any
.
source§fn finish_cloned(&self) -> Arc<dyn Array>
fn finish_cloned(&self) -> Arc<dyn Array>
Builds the array without resetting the builder.
source§impl Debug for NullBuilder
impl Debug for NullBuilder
source§impl Default for NullBuilder
impl Default for NullBuilder
source§fn default() -> NullBuilder
fn default() -> NullBuilder
Returns the “default value” for a type. Read more
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