pub struct ParallelDatasetWriter<W: TableWriter + Send> {
pub config: W::Config,
/* private fields */
}Expand description
Writes a set of files (called tables here) to a directory.
Fields§
§config: W::ConfigImplementations§
Source§impl<W: TableWriter<Schema = ()> + Send> ParallelDatasetWriter<W>
impl<W: TableWriter<Schema = ()> + Send> ParallelDatasetWriter<W>
Source§impl<W: TableWriter + Send> ParallelDatasetWriter<W>
impl<W: TableWriter + Send> ParallelDatasetWriter<W>
pub fn with_schema(path: PathBuf, schema: W::Schema) -> Result<Self>
Sourcepub fn get_thread_writer(&self) -> Result<RefMut<'_, W>>
pub fn get_thread_writer(&self) -> Result<RefMut<'_, W>>
Returns a new sequential writer.
§Panics
When called from a thread holding another reference to a sequential writer of this dataset.
Sourcepub fn close(self) -> Result<Vec<W::CloseResult>>
pub fn close(self) -> Result<Vec<W::CloseResult>>
Closes all underlying writers
Trait Implementations§
Source§impl<W: TableWriter + Send> Drop for ParallelDatasetWriter<W>
impl<W: TableWriter + Send> Drop for ParallelDatasetWriter<W>
Auto Trait Implementations§
impl<W> !Freeze for ParallelDatasetWriter<W>
impl<W> RefUnwindSafe for ParallelDatasetWriter<W>
impl<W> Send for ParallelDatasetWriter<W>
impl<W> Sync for ParallelDatasetWriter<W>
impl<W> Unpin for ParallelDatasetWriter<W>
impl<W> UnsafeUnpin for ParallelDatasetWriter<W>
impl<W> UnwindSafe for ParallelDatasetWriter<W>where
<W as TableWriter>::Schema: UnwindSafe,
<W as TableWriter>::Config: UnwindSafe,
W: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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> 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