pub struct FilesDestination { /* private fields */ }Expand description
Local files destination. Writes part-NNNNN.{extension} files to a directory,
or one {dir}.{extension} when single_file.
Write is atomic via tmp dir + rename.
Written paths land in RunReport.written_objects.
Implementations§
Trait Implementations§
Source§impl Clone for FilesDestination
impl Clone for FilesDestination
Source§fn clone(&self) -> FilesDestination
fn clone(&self) -> FilesDestination
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Destination for FilesDestination
impl Destination for FilesDestination
Source§fn write_partitions<'async_trait>(
self: Box<Self>,
partitions: Vec<BatchStream>,
) -> Pin<Box<dyn Future<Output = Result<RunReport, TransferredError>> + Send + 'async_trait>>where
Self: 'async_trait,
fn write_partitions<'async_trait>(
self: Box<Self>,
partitions: Vec<BatchStream>,
) -> Pin<Box<dyn Future<Output = Result<RunReport, TransferredError>> + Send + 'async_trait>>where
Self: 'async_trait,
Consume the destination and write the partitions. Single-shot.
Schema is taken from the first batch each partition emits.
Auto Trait Implementations§
impl !RefUnwindSafe for FilesDestination
impl !UnwindSafe for FilesDestination
impl Freeze for FilesDestination
impl Send for FilesDestination
impl Sync for FilesDestination
impl Unpin for FilesDestination
impl UnsafeUnpin for FilesDestination
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