pub struct Partition {
pub rows: Vec<Row>,
pub original_indices: Vec<usize>,
pub column_map: HashMap<String, usize>,
}Expand description
A partition of rows for window function evaluation
Fields§
§rows: Vec<Row>§original_indices: Vec<usize>Original indices of rows before partitioning/sorting
column_map: HashMap<String, usize>Column name to index mapping (for resolving named column references)
Implementations§
Source§impl Partition
impl Partition
pub fn new(rows: Vec<Row>) -> Self
pub fn with_indices(rows: Vec<Row>, original_indices: Vec<usize>) -> Self
pub fn with_column_map( rows: Vec<Row>, original_indices: Vec<usize>, column_map: HashMap<String, usize>, ) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn get_column_index(&self, name: &str) -> Option<usize>
pub fn get_column_index(&self, name: &str) -> Option<usize>
Get column index by name (case-insensitive)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Partition
impl RefUnwindSafe for Partition
impl Send for Partition
impl Sync for Partition
impl Unpin for Partition
impl UnwindSafe for Partition
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,
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