pub struct ArrowWriter<W> { /* private fields */ }
Expand description
Encodes RecordBatch
es into an ORC file. Will encode batch_size
rows
at a time into a stripe, flushing the stripe to the underlying writer when
it’s estimated memory footprint exceeds the configures stripe_byte_size
.
Implementations§
Source§impl<W: Write> ArrowWriter<W>
impl<W: Write> ArrowWriter<W>
Sourcepub fn write(&mut self, batch: &RecordBatch) -> Result<()>
pub fn write(&mut self, batch: &RecordBatch) -> Result<()>
Encode the provided batch at batch_size
rows at a time, flushing any
stripes that exceed the configured stripe size.
Sourcepub fn flush_stripe(&mut self) -> Result<()>
pub fn flush_stripe(&mut self) -> Result<()>
Flush any buffered data that hasn’t been written, and write the stripe footer metadata.
Auto Trait Implementations§
impl<W> Freeze for ArrowWriter<W>where
W: Freeze,
impl<W> !RefUnwindSafe for ArrowWriter<W>
impl<W> !Send for ArrowWriter<W>
impl<W> !Sync for ArrowWriter<W>
impl<W> Unpin for ArrowWriter<W>where
W: Unpin,
impl<W> !UnwindSafe for ArrowWriter<W>
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