pub struct TumblingEngine<G, C, Accumulator> { /* private fields */ }Implementations§
Source§impl<G, C, Accumulator> TumblingEngine<G, C, Accumulator>where
G: Clone + Eq + Ord + Hash + Debug + Serialize + DeserializeOwned,
C: Slot + Hash + Serialize + DeserializeOwned,
Accumulator: WindowAccumulator,
for<'a> &'a G: IntoEncodedKey,
impl<G, C, Accumulator> TumblingEngine<G, C, Accumulator>where
G: Clone + Eq + Ord + Hash + Debug + Serialize + DeserializeOwned,
C: Slot + Hash + Serialize + DeserializeOwned,
Accumulator: WindowAccumulator,
for<'a> &'a G: IntoEncodedKey,
pub fn new(config: WindowEngineConfig) -> Self
pub fn apply<S, K, NA>( &mut self, store: &mut S, buckets: TumblingBuckets<G, C, Accumulator::Contribution>, row_key: K, new_accumulator: NA, ) -> Result<Vec<WindowResult<G, C, Accumulator::Output>>>
pub fn flush<S: WindowStore>(&mut self, store: &mut S) -> Result<()>
pub fn expire<S: WindowStore>( &mut self, store: &mut S, threshold: u64, ) -> Result<Vec<ExpiredWindow<G, C, Accumulator::Output>>>
Auto Trait Implementations§
impl<G, C, Accumulator> Freeze for TumblingEngine<G, C, Accumulator>
impl<G, C, Accumulator> RefUnwindSafe for TumblingEngine<G, C, Accumulator>
impl<G, C, Accumulator> Send for TumblingEngine<G, C, Accumulator>
impl<G, C, Accumulator> Sync for TumblingEngine<G, C, Accumulator>
impl<G, C, Accumulator> Unpin for TumblingEngine<G, C, Accumulator>where
G: Unpin,
impl<G, C, Accumulator> UnsafeUnpin for TumblingEngine<G, C, Accumulator>
impl<G, C, Accumulator> UnwindSafe for TumblingEngine<G, C, Accumulator>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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