pub struct ShardedWriterWithKey<FKey> { /* private fields */ }Implementations§
Source§impl<FKey> ShardedWriterWithKey<FKey>
impl<FKey> ShardedWriterWithKey<FKey>
Sourcepub fn with_output_shard_naming<FNameFile>(
self,
create_output_filename: FNameFile,
) -> ShardedWriter<FKey, FNameFile>
pub fn with_output_shard_naming<FNameFile>( self, create_output_filename: FNameFile, ) -> ShardedWriter<FKey, FNameFile>
Specifies how output shard files will be named.
The specified function will be called with the key value (derived from the key_selector
passed to ShardedWriterBuilder::with_key_selector) and the current sequence number,
which is a zero-based number identifying how many files have been written for this shard.
Auto Trait Implementations§
impl<FKey> Freeze for ShardedWriterWithKey<FKey>where
FKey: Freeze,
impl<FKey> RefUnwindSafe for ShardedWriterWithKey<FKey>where
FKey: RefUnwindSafe,
impl<FKey> Send for ShardedWriterWithKey<FKey>where
FKey: Send,
impl<FKey> Sync for ShardedWriterWithKey<FKey>where
FKey: Sync,
impl<FKey> Unpin for ShardedWriterWithKey<FKey>where
FKey: Unpin,
impl<FKey> UnwindSafe for ShardedWriterWithKey<FKey>where
FKey: UnwindSafe,
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