struct AggregateStreamInner {
schema: SchemaRef,
mode: AggregateMode,
input: SendableRecordBatchStream,
baseline_metrics: BaselineMetrics,
aggregate_expressions: Vec<Vec<Arc<dyn PhysicalExpr>>>,
filter_expressions: Vec<Option<Arc<dyn PhysicalExpr>>>,
accumulators: Vec<AccumulatorItem>,
reservation: MemoryReservation,
finished: bool,
}Expand description
Actual implementation of AggregateStream.
This is wrapped into yet another struct because we need to interact with the async memory management subsystem
during poll. To have as little code “weirdness” as possible, we chose to just use [BoxStream] together with
[futures::stream::unfold].
The latter requires a state object, which is AggregateStreamInner.
Fields§
§schema: SchemaRef§mode: AggregateMode§input: SendableRecordBatchStream§baseline_metrics: BaselineMetrics§aggregate_expressions: Vec<Vec<Arc<dyn PhysicalExpr>>>§filter_expressions: Vec<Option<Arc<dyn PhysicalExpr>>>§accumulators: Vec<AccumulatorItem>§reservation: MemoryReservation§finished: boolAuto Trait Implementations§
impl Freeze for AggregateStreamInner
impl !RefUnwindSafe for AggregateStreamInner
impl Send for AggregateStreamInner
impl !Sync for AggregateStreamInner
impl Unpin for AggregateStreamInner
impl !UnwindSafe for AggregateStreamInner
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