pub struct WindowAggState {
pub window_frame_range: Range<usize>,
pub window_frame_ctx: Option<WindowFrameContext>,
pub last_calculated_index: usize,
pub offset_pruned_rows: usize,
pub out_col: ArrayRef,
pub n_row_result_missing: usize,
pub is_end: bool,
}Expand description
Holds the state of evaluating a window function
Fields§
§window_frame_range: Range<usize>The range that we calculate the window function
window_frame_ctx: Option<WindowFrameContext>§last_calculated_index: usizeThe index of the last row that its result is calculated inside the partition record batch buffer.
offset_pruned_rows: usizeThe offset of the deleted row number
out_col: ArrayRefStores the results calculated by window frame
n_row_result_missing: usizeKeeps track of how many rows should be generated to be in sync with input record_batch.
is_end: boolFlag indicating whether we have received all data for this partition
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WindowAggState
impl !RefUnwindSafe for WindowAggState
impl Send for WindowAggState
impl Sync for WindowAggState
impl Unpin for WindowAggState
impl !UnwindSafe for WindowAggState
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