enum SpillReaderStreamState {
Uninitialized(RefCountedTempFile),
ReadInProgress(SpawnedTask<Result<(StreamReader<BufReader<File>>, Option<RecordBatch>)>>),
Waiting(StreamReader<BufReader<File>>),
Done,
}Variants§
Uninitialized(RefCountedTempFile)
Initial state: the stream was not initialized yet and the file was not opened
ReadInProgress(SpawnedTask<Result<(StreamReader<BufReader<File>>, Option<RecordBatch>)>>)
A read is in progress in a spawned blocking task for which we hold the handle.
Waiting(StreamReader<BufReader<File>>)
A read has finished and we wait for being polled again in order to start reading the next batch.
Done
The stream has finished, successfully or not.
Auto Trait Implementations§
impl Freeze for SpillReaderStreamState
impl !RefUnwindSafe for SpillReaderStreamState
impl Send for SpillReaderStreamState
impl Sync for SpillReaderStreamState
impl Unpin for SpillReaderStreamState
impl !UnwindSafe for SpillReaderStreamState
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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