pub struct NullGroupedReduction { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for NullGroupedReduction
impl Clone for NullGroupedReduction
Source§fn clone(&self) -> NullGroupedReduction
fn clone(&self) -> NullGroupedReduction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl GroupedReduction for NullGroupedReduction
impl GroupedReduction for NullGroupedReduction
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 Freeze for NullGroupedReduction
impl !RefUnwindSafe for NullGroupedReduction
impl Send for NullGroupedReduction
impl Sync for NullGroupedReduction
impl Unpin for NullGroupedReduction
impl !UnwindSafe for NullGroupedReduction
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