pub struct GroupByDynamicWindower { /* private fields */ }Available on crate feature
temporal only.Implementations§
Source§impl GroupByDynamicWindower
impl GroupByDynamicWindower
pub fn new( period: Duration, offset: Duration, every: Duration, start_by: StartBy, closed: ClosedWindow, tu: TimeUnit, tz: Option<Tz>, include_lower_bound: bool, include_upper_bound: bool, ) -> GroupByDynamicWindower
pub fn find_first_window_around( &self, lower_bound: i64, target: i64, ) -> Result<Result<(i64, i64), i64>, PolarsError>
pub fn insert( &mut self, time: &[i64], windows: &mut Vec<[u32; 2]>, lower_bound: &mut Vec<i64>, upper_bound: &mut Vec<i64>, ) -> Result<(), PolarsError>
pub fn lowest_needed_index(&self) -> u32
pub fn finalize( &mut self, windows: &mut Vec<[u32; 2]>, lower_bound: &mut Vec<i64>, upper_bound: &mut Vec<i64>, )
pub fn num_seen(&self) -> u32
pub fn time_unit(&self) -> TimeUnit
Auto Trait Implementations§
impl Freeze for GroupByDynamicWindower
impl RefUnwindSafe for GroupByDynamicWindower
impl Send for GroupByDynamicWindower
impl Sync for GroupByDynamicWindower
impl Unpin for GroupByDynamicWindower
impl UnwindSafe for GroupByDynamicWindower
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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