pub struct TableWriter<R>{
_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> Freeze for TableWriter<R>
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