pub struct RankState {
pub last_rank_data: Option<Vec<ScalarValue>>,
pub last_rank_boundary: usize,
pub current_group_count: usize,
pub n_rank: usize,
}
Expand description
State for the RANK(rank) built-in window function.
Fields§
§last_rank_data: Option<Vec<ScalarValue>>
The last values for rank as these values change, we increase n_rank
last_rank_boundary: usize
The index where last_rank_boundary is started
current_group_count: usize
Keep the number of entries in current rank
n_rank: usize
Rank number kept from the start
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RankState
impl !RefUnwindSafe for RankState
impl Send for RankState
impl Sync for RankState
impl Unpin for RankState
impl !UnwindSafe for RankState
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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