struct IPCStreamWriter {
pub writer: StreamWriter<File>,
pub num_batches: usize,
pub num_rows: usize,
pub num_bytes: usize,
}Expand description
Write in Arrow IPC Stream format to a file.
Stream format is used for spill because it supports dictionary replacement, and the random access of IPC File format is not needed (IPC File format doesn’t support dictionary replacement).
Fields§
§writer: StreamWriter<File>Inner writer
num_batches: usizeBatches written
num_rows: usizeRows written
num_bytes: usizeBytes written
Implementations§
Source§impl IPCStreamWriter
impl IPCStreamWriter
Sourcepub fn new(
path: &Path,
schema: &Schema,
compression_type: SpillCompression,
) -> Result<Self>
pub fn new( path: &Path, schema: &Schema, compression_type: SpillCompression, ) -> Result<Self>
Create new writer
Auto Trait Implementations§
impl Freeze for IPCStreamWriter
impl RefUnwindSafe for IPCStreamWriter
impl Send for IPCStreamWriter
impl Sync for IPCStreamWriter
impl Unpin for IPCStreamWriter
impl UnwindSafe for IPCStreamWriter
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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