pub struct BatchedWriter<W: Write> { /* private fields */ }
Available on crate feature
parquet
only.Implementations§
Source§impl<W: Write> BatchedWriter<W>
impl<W: Write> BatchedWriter<W>
pub fn encode_and_compress<'a>( &'a self, df: &'a DataFrame, ) -> impl Iterator<Item = PolarsResult<RowGroupIterColumns<'static, PolarsError>>> + 'a
Sourcepub fn write_batch(&mut self, df: &DataFrame) -> PolarsResult<()>
pub fn write_batch(&mut self, df: &DataFrame) -> PolarsResult<()>
pub fn get_writer(&self) -> &Mutex<FileWriter<W>>
pub fn write_row_groups( &self, rgs: Vec<RowGroupIterColumns<'static, PolarsError>>, ) -> PolarsResult<()>
Sourcepub fn finish(&self) -> PolarsResult<u64>
pub fn finish(&self) -> PolarsResult<u64>
Writes the footer of the parquet file. Returns the total size of the file.
Auto Trait Implementations§
impl<W> !Freeze for BatchedWriter<W>
impl<W> RefUnwindSafe for BatchedWriter<W>
impl<W> Send for BatchedWriter<W>where
W: Send,
impl<W> Sync for BatchedWriter<W>where
W: Send,
impl<W> Unpin for BatchedWriter<W>where
W: Unpin,
impl<W> UnwindSafe for BatchedWriter<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