pub struct RollingWindower { /* private fields */ }Available on crate feature
temporal only.Implementations§
Source§impl RollingWindower
impl RollingWindower
pub fn new( period: Duration, offset: Duration, closed: ClosedWindow, tu: TimeUnit, tz: Option<Tz>, ) -> RollingWindower
Sourcepub fn insert(
&mut self,
time: &[&[i64]],
windows: &mut Vec<[u32; 2]>,
) -> Result<u32, PolarsError>
pub fn insert( &mut self, time: &[&[i64]], windows: &mut Vec<[u32; 2]>, ) -> Result<u32, PolarsError>
Insert new values into the windower.
This should be given all the old values that were not processed yet.
Sourcepub fn finalize(&mut self, time: &[&[i64]], windows: &mut Vec<[u32; 2]>)
pub fn finalize(&mut self, time: &[&[i64]], windows: &mut Vec<[u32; 2]>)
Process all remaining items and signal that no more items are coming.
pub fn reset(&mut self)
Auto Trait Implementations§
impl Freeze for RollingWindower
impl RefUnwindSafe for RollingWindower
impl Send for RollingWindower
impl Sync for RollingWindower
impl Unpin for RollingWindower
impl UnwindSafe for RollingWindower
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