pub struct IngestBuilder { /* private fields */ }Expand description
Ingestion builder that writes per-column Arrow arrays with a lane/tag design.
Implementations§
Source§impl IngestBuilder
impl IngestBuilder
pub fn new( sheet_name: &str, ncols: usize, chunk_rows: usize, date_system: DateSystem, ) -> Self
Sourcepub fn append_row_cells<'a>(
&mut self,
row: &[CellIngest<'a>],
) -> Result<(), ExcelError>
pub fn append_row_cells<'a>( &mut self, row: &[CellIngest<'a>], ) -> Result<(), ExcelError>
Zero-allocation row append from typed cell tokens (no LiteralValue). Text borrows are copied into the internal StringBuilder.
Sourcepub fn append_row_cells_iter<'a, I>(
&mut self,
iter: I,
) -> Result<(), ExcelError>where
I: ExactSizeIterator<Item = CellIngest<'a>>,
pub fn append_row_cells_iter<'a, I>(
&mut self,
iter: I,
) -> Result<(), ExcelError>where
I: ExactSizeIterator<Item = CellIngest<'a>>,
Streaming row append from an iterator of typed cell tokens.
Requires an ExactSizeIterator to validate row width without materializing a Vec.
Sourcepub fn append_row(&mut self, row: &[LiteralValue]) -> Result<(), ExcelError>
pub fn append_row(&mut self, row: &[LiteralValue]) -> Result<(), ExcelError>
Append a single row of values. Length must match ncols.
pub fn finish(self) -> ArrowSheet
Auto Trait Implementations§
impl Freeze for IngestBuilder
impl !RefUnwindSafe for IngestBuilder
impl Send for IngestBuilder
impl Sync for IngestBuilder
impl Unpin for IngestBuilder
impl !UnwindSafe for IngestBuilder
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
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