Struct arrow::array::FixedSizeListBuilder
source · [−]pub struct FixedSizeListBuilder<T: ArrayBuilder> { /* private fields */ }
Expand description
Array builder for ListArray
Implementations
sourceimpl<T: ArrayBuilder> FixedSizeListBuilder<T>
impl<T: ArrayBuilder> FixedSizeListBuilder<T>
sourcepub fn new(values_builder: T, length: i32) -> Self
pub fn new(values_builder: T, length: i32) -> Self
Creates a new FixedSizeListBuilder
from a given values array builder
length
is the number of values within each array
sourcepub fn with_capacity(values_builder: T, length: i32, capacity: usize) -> Self
pub fn with_capacity(values_builder: T, length: i32, capacity: usize) -> Self
Creates a new FixedSizeListBuilder
from a given values array builder
length
is the number of values within each array
capacity
is the number of items to pre-allocate space for in this builder
sourceimpl<T: ArrayBuilder> FixedSizeListBuilder<T> where
T: 'static,
impl<T: ArrayBuilder> FixedSizeListBuilder<T> where
T: 'static,
sourcepub fn values(&mut self) -> &mut T
pub fn values(&mut self) -> &mut T
Returns the child array builder as a mutable reference.
This mutable reference can be used to append values into the child array builder,
but you must call append
to delimit each distinct list value.
pub fn value_length(&self) -> i32
sourcepub fn append(&mut self, is_valid: bool) -> Result<()>
pub fn append(&mut self, is_valid: bool) -> Result<()>
Finish the current variable-length list array slot
sourcepub fn finish(&mut self) -> FixedSizeListArray
pub fn finish(&mut self) -> FixedSizeListArray
Builds the FixedSizeListBuilder
and reset this builder.
Trait Implementations
sourceimpl<T: ArrayBuilder> ArrayBuilder for FixedSizeListBuilder<T> where
T: 'static,
impl<T: ArrayBuilder> ArrayBuilder for FixedSizeListBuilder<T> where
T: 'static,
sourcefn 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.
sourcefn into_box_any(self: Box<Self>) -> Box<dyn Any>
fn into_box_any(self: Box<Self>) -> Box<dyn Any>
Returns the boxed builder as a box of Any
.
sourceimpl<T: Debug + ArrayBuilder> Debug for FixedSizeListBuilder<T>
impl<T: Debug + ArrayBuilder> Debug for FixedSizeListBuilder<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for FixedSizeListBuilder<T> where
T: RefUnwindSafe,
impl<T> Send for FixedSizeListBuilder<T>
impl<T> Sync for FixedSizeListBuilder<T> where
T: Sync,
impl<T> Unpin for FixedSizeListBuilder<T> where
T: Unpin,
impl<T> UnwindSafe for FixedSizeListBuilder<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more