pub struct NdColumnBuilder { /* private fields */ }Expand description
Collects nd arrays and encodes them into an NdColumn.
The attrs struct of the column holds the union of all attribute keys.
A row without a key gets a null for it. The same key with two different
types is an error.
Implementations§
Source§impl NdColumnBuilder
impl NdColumnBuilder
Sourcepub fn with_value_type(value_type: DataType) -> Self
pub fn with_value_type(value_type: DataType) -> Self
A builder with a known value type, so that all-null and empty columns work.
Sourcepub fn with_value_field(value_field: FieldRef) -> Self
pub fn with_value_field(value_field: FieldRef) -> Self
A builder with a custom item field for the values list.
Sourcepub fn append(&mut self, array: &NdArrowArray) -> Result<()>
pub fn append(&mut self, array: &NdArrowArray) -> Result<()>
Append one array as a row. Its value type must match the column.
Sourcepub fn append_null(&mut self)
pub fn append_null(&mut self)
Append a null row.
Sourcepub fn append_option(&mut self, array: Option<&NdArrowArray>) -> Result<()>
pub fn append_option(&mut self, array: Option<&NdArrowArray>) -> Result<()>
Append an array, or a null row for None.
Trait Implementations§
Source§impl Debug for NdColumnBuilder
impl Debug for NdColumnBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for NdColumnBuilder
impl !UnwindSafe for NdColumnBuilder
impl Freeze for NdColumnBuilder
impl Send for NdColumnBuilder
impl Sync for NdColumnBuilder
impl Unpin for NdColumnBuilder
impl UnsafeUnpin for NdColumnBuilder
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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