struct SpillState {
spill_expr: LexOrdering,
spill_schema: SchemaRef,
merging_aggregate_arguments: Vec<Vec<Arc<dyn PhysicalExpr>>>,
merging_group_by: PhysicalGroupBy,
spill_manager: SpillManager,
spills: Vec<SortedSpillFile>,
is_stream_merging: bool,
peak_mem_used: Gauge,
}Expand description
This encapsulates the spilling state
Fields§
§spill_expr: LexOrderingSorting expression for spilling batches
spill_schema: SchemaRefSchema for spilling batches
merging_aggregate_arguments: Vec<Vec<Arc<dyn PhysicalExpr>>>aggregate_arguments for merging spilled data
merging_group_by: PhysicalGroupByGROUP BY expressions for merging spilled data
spill_manager: SpillManagerManages the process of spilling and reading back intermediate data
spills: Vec<SortedSpillFile>If data has previously been spilled, the locations of the spill files (in Arrow IPC format)
is_stream_merging: booltrue when streaming merge is in progress
peak_mem_used: GaugePeak memory used for buffered data. Calculated as sum of peak memory values across partitions
Auto Trait Implementations§
impl Freeze for SpillState
impl !RefUnwindSafe for SpillState
impl Send for SpillState
impl Sync for SpillState
impl Unpin for SpillState
impl !UnwindSafe for SpillState
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