pub struct VecMaskGroupedReduction<R: Reducer> { /* private fields */ }
Trait Implementations§
Source§impl<R> GroupedReduction for VecMaskGroupedReduction<R>where
R: Reducer,
impl<R> GroupedReduction for VecMaskGroupedReduction<R>where
R: Reducer,
Source§fn new_empty(&self) -> Box<dyn GroupedReduction>
fn new_empty(&self) -> Box<dyn GroupedReduction>
Returns a new empty reduction.
Source§fn reserve(&mut self, additional: usize)
fn reserve(&mut self, additional: usize)
Reserves space in this GroupedReduction for an additional number of groups.
Source§fn resize(&mut self, num_groups: IdxSize)
fn resize(&mut self, num_groups: IdxSize)
Resizes this GroupedReduction to the given number of groups. Read more
Source§fn update_group(
&mut self,
values: &Column,
group_idx: IdxSize,
seq_id: u64,
) -> PolarsResult<()>
fn update_group( &mut self, values: &Column, group_idx: IdxSize, seq_id: u64, ) -> PolarsResult<()>
Updates the specified group with the given values. Read more
Source§unsafe fn update_groups_while_evicting(
&mut self,
values: &Column,
subset: &[IdxSize],
group_idxs: &[EvictIdx],
seq_id: u64,
) -> PolarsResult<()>
unsafe fn update_groups_while_evicting( &mut self, values: &Column, subset: &[IdxSize], group_idxs: &[EvictIdx], seq_id: u64, ) -> PolarsResult<()>
Updates this GroupedReduction with new values. values[subset[i]] should
be added to reduction self[group_idxs[i]]. For order-sensitive grouped
reductions, seq_id can be used to resolve order between calls/multiple
reductions. If the group_idxs[i] has its evict bit set the current value
in the group should be evicted and reset before updating. Read more
Source§unsafe fn combine_subset(
&mut self,
other: &dyn GroupedReduction,
subset: &[IdxSize],
group_idxs: &[IdxSize],
) -> PolarsResult<()>
unsafe fn combine_subset( &mut self, other: &dyn GroupedReduction, subset: &[IdxSize], group_idxs: &[IdxSize], ) -> PolarsResult<()>
Combines this GroupedReduction with another. Group other[subset[i]]
should be combined into group self[group_idxs[i]]. Read more
Source§fn take_evictions(&mut self) -> Box<dyn GroupedReduction>
fn take_evictions(&mut self) -> Box<dyn GroupedReduction>
Take the accumulated evicted groups.
Source§fn finalize(&mut self) -> PolarsResult<Series>
fn finalize(&mut self) -> PolarsResult<Series>
Returns the finalized value per group as a Series. Read more
Source§unsafe fn update_groups_subset(
&mut self,
values: &Column,
subset: &[IdxSize],
group_idxs: &[IdxSize],
seq_id: u64,
) -> PolarsResult<()>
unsafe fn update_groups_subset( &mut self, values: &Column, subset: &[IdxSize], group_idxs: &[IdxSize], seq_id: u64, ) -> PolarsResult<()>
Updates this GroupedReduction with new values. values[subset[i]] should
be added to reduction self[group_idxs[i]]. For order-sensitive grouped
reductions, seq_id can be used to resolve order between calls/multiple
reductions. Read more
Auto Trait Implementations§
impl<R> Freeze for VecMaskGroupedReduction<R>where
R: Freeze,
impl<R> RefUnwindSafe for VecMaskGroupedReduction<R>
impl<R> Send for VecMaskGroupedReduction<R>
impl<R> Sync for VecMaskGroupedReduction<R>
impl<R> Unpin for VecMaskGroupedReduction<R>
impl<R> UnwindSafe for VecMaskGroupedReduction<R>
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