Struct bookdata::arrow::writer::TableWriter
source · pub struct TableWriter<R: TableRow + Send + Sync + 'static> {
_phantom: PhantomData<R>,
writer: Option<UnchunkWriter<R, ThreadObjectWriter<'static, Vec<R>>>>,
out_path: Option<PathBuf>,
row_count: usize,
}
Expand description
Parquet table writer.
A table writer is an ObjectWriter for structs implementing TableRow, that writes them out to a Parquet file.
Fields§
§_phantom: PhantomData<R>
§writer: Option<UnchunkWriter<R, ThreadObjectWriter<'static, Vec<R>>>>
§out_path: Option<PathBuf>
§row_count: usize
Implementations§
source§impl<R> TableWriter<R>
impl<R> TableWriter<R>
source§impl<R> TableWriter<R>
impl<R> TableWriter<R>
fn display_path(&self) -> Cow<'static, str>
Trait Implementations§
source§impl<R> DataSink for TableWriter<R>
impl<R> DataSink for TableWriter<R>
source§impl<R> Drop for TableWriter<R>
impl<R> Drop for TableWriter<R>
source§impl<R> ObjectWriter<R> for TableWriter<R>
impl<R> ObjectWriter<R> for TableWriter<R>
source§fn write_object(&mut self, row: R) -> Result<()>
fn write_object(&mut self, row: R) -> Result<()>
Write one object.
source§fn write_all_objects<I>(&mut self, objects: I) -> Result<usize>where
I: Iterator<Item = T>,
fn write_all_objects<I>(&mut self, objects: I) -> Result<usize>where
I: Iterator<Item = T>,
Write an iterator full of objects.
Auto Trait Implementations§
impl<R> !RefUnwindSafe for TableWriter<R>
impl<R> Send for TableWriter<R>
impl<R> Sync for TableWriter<R>
impl<R> Unpin for TableWriter<R>where
R: Unpin,
impl<R> !UnwindSafe for TableWriter<R>
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