pub struct SharedSpill { /* private fields */ }Expand description
Immutable repeatable row materialization bounded by the source buffer’s memory budget and backed by a temporary file after that budget is exceeded.
Implementations§
pub fn schema(&self) -> &[String]
pub fn row_schema(&self) -> &RowSchema
pub fn rows(&self) -> usize
Sourcepub fn has_spilled(&self) -> bool
pub fn has_spilled(&self) -> bool
Whether this materialization crossed its memory budget and uses disk.
pub fn reader(&self) -> ExecResult<SharedSpillReader>
Sourcepub fn into_reader(self) -> ExecResult<SharedSpillReader>
pub fn into_reader(self) -> ExecResult<SharedSpillReader>
Consume this materialization into a one-shot reader.
When the in-memory materialization has no other owners, batches move
directly into the reader instead of being deep-cloned. Shared and disk
materializations retain the independent-reader behavior of Self::reader.
Sourcepub fn read_rows(&self) -> ExecResult<SpillRows<SharedSpillReader>>
pub fn read_rows(&self) -> ExecResult<SpillRows<SharedSpillReader>>
Open an independent physical-row reader without collecting the spill’s batches or row count in memory.
Trait Implementations§
Source§fn clone(&self) -> SharedSpill
fn clone(&self) -> SharedSpill
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 moreAuto Trait Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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