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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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