Struct arrow::array::BooleanBuilder [−][src]
pub struct BooleanBuilder { /* fields omitted */ }
Array builder for fixed-width primitive types
Implementations
impl BooleanBuilder
[src]
impl BooleanBuilder
[src]pub fn new(capacity: usize) -> Self
[src]
Creates a new primitive array builder
pub fn capacity(&self) -> usize
[src]
Returns the capacity of this builder measured in slots of type T
pub fn append_value(&mut self, v: bool) -> Result<()>
[src]
Appends a value of type T
into the builder
pub fn append_null(&mut self) -> Result<()>
[src]
Appends a null slot into the builder
pub fn append_option(&mut self, v: Option<bool>) -> Result<()>
[src]
Appends an Option<T>
into the builder
pub fn append_slice(&mut self, v: &[bool]) -> Result<()>
[src]
Appends a slice of type T
into the builder
pub fn append_values(
&mut self,
values: &[bool],
is_valid: &[bool]
) -> Result<()>
[src]
&mut self,
values: &[bool],
is_valid: &[bool]
) -> Result<()>
Appends values from a slice of type T
and a validity boolean slice
pub fn finish(&mut self) -> BooleanArray
[src]
Builds the BooleanArray and reset this builder.
Trait Implementations
impl ArrayBuilder for BooleanBuilder
[src]
impl ArrayBuilder for BooleanBuilder
[src]fn as_any(&self) -> &dyn Any
[src]
Returns the builder as a non-mutable Any
reference.
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
Returns the builder as a mutable Any
reference.
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
[src]
Returns the boxed builder as a box of Any
.
fn len(&self) -> usize
[src]
Returns the number of array slots in the builder
fn is_empty(&self) -> bool
[src]
Returns whether the number of array slots is zero
fn finish(&mut self) -> ArrayRef
[src]
Builds the array and reset this builder.
Auto Trait Implementations
impl RefUnwindSafe for BooleanBuilder
impl RefUnwindSafe for BooleanBuilder
impl Send for BooleanBuilder
impl Send for BooleanBuilder
impl Sync for BooleanBuilder
impl Sync for BooleanBuilder
impl Unpin for BooleanBuilder
impl Unpin for BooleanBuilder
impl UnwindSafe for BooleanBuilder
impl UnwindSafe for BooleanBuilder