pub struct SpillFileSet { /* private fields */ }Expand description
A collection of spill files for managing multiple sorted runs
Used by external sort to manage multiple sorted runs that need to be merged together.
Implementations§
Source§impl SpillFileSet
impl SpillFileSet
Sourcepub fn create_file(&mut self) -> Result<&mut SpillFile>
pub fn create_file(&mut self) -> Result<&mut SpillFile>
Create a new spill file in this set
Sourcepub fn create_file_with_suffix(
&mut self,
suffix: &str,
) -> Result<&mut SpillFile>
pub fn create_file_with_suffix( &mut self, suffix: &str, ) -> Result<&mut SpillFile>
Create a new spill file with a suffix
Sourcepub fn total_bytes(&self) -> usize
pub fn total_bytes(&self) -> usize
Get total bytes spilled
Sourcepub fn into_files(self) -> Vec<SpillFile>
pub fn into_files(self) -> Vec<SpillFile>
Take ownership of all files (consumes the set)
Sourcepub fn prepare_all_for_read(&mut self) -> Result<()>
pub fn prepare_all_for_read(&mut self) -> Result<()>
Prepare all files for reading
Auto Trait Implementations§
impl Freeze for SpillFileSet
impl RefUnwindSafe for SpillFileSet
impl Send for SpillFileSet
impl Sync for SpillFileSet
impl Unpin for SpillFileSet
impl UnwindSafe for SpillFileSet
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
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