Struct datafusion_expr::window_state::WindowAggState
source · 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: usize
The index of the last row that its result is calculated inside the partition record batch buffer.
offset_pruned_rows: usize
The offset of the deleted row number
out_col: ArrayRef
Stores the results calculated by window frame
n_row_result_missing: usize
Keeps track of how many rows should be generated to be in sync with input record_batch.
is_end: bool
flag 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