pub struct SpillWindowedFile { /* private fields */ }Expand description
A bounded source backed by an immutable, automatically deleted spill file.
Implementations§
Source§impl SpillWindowedFile
impl SpillWindowedFile
Sourcepub fn open(
artifact: SpillArtifact,
record_bytes: usize,
length: u64,
max_window_bytes: usize,
context: &ExecutionContext,
) -> Result<Self, Diagnostic>
pub fn open( artifact: SpillArtifact, record_bytes: usize, length: u64, max_window_bytes: usize, context: &ExecutionContext, ) -> Result<Self, Diagnostic>
Opens fixed-size records as one logical byte stream.
§Errors
Returns a resource diagnostic if buffers, the artifact, or its record geometry are invalid.
Source§impl SpillWindowedFile
impl SpillWindowedFile
Sourcepub const fn spill_bytes(&self) -> u64
pub const fn spill_bytes(&self) -> u64
Physical bytes retained by the execution-owned artifact.
Trait Implementations§
Source§impl Debug for SpillWindowedFile
impl Debug for SpillWindowedFile
Source§impl SourceBytes for SpillWindowedFile
impl SourceBytes for SpillWindowedFile
Auto Trait Implementations§
impl Freeze for SpillWindowedFile
impl RefUnwindSafe for SpillWindowedFile
impl Send for SpillWindowedFile
impl Sync for SpillWindowedFile
impl Unpin for SpillWindowedFile
impl UnsafeUnpin for SpillWindowedFile
impl UnwindSafe for SpillWindowedFile
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