pub struct RollingIncrementalEngine<G, C, Accumulator, Running> { /* private fields */ }Implementations§
Source§impl<G, C, Accumulator, Running> RollingIncrementalEngine<G, C, Accumulator, Running>where
G: Clone + Eq + Ord + Hash + Debug + Serialize + DeserializeOwned,
C: Slot + Hash + Serialize + DeserializeOwned,
Accumulator: WindowAccumulator,
Running: WindowAccumulator,
for<'a> &'a G: IntoEncodedKey,
impl<G, C, Accumulator, Running> RollingIncrementalEngine<G, C, Accumulator, Running>where
G: Clone + Eq + Ord + Hash + Debug + Serialize + DeserializeOwned,
C: Slot + Hash + Serialize + DeserializeOwned,
Accumulator: WindowAccumulator,
Running: WindowAccumulator,
for<'a> &'a G: IntoEncodedKey,
pub fn new(config: WindowEngineConfig) -> Self
pub fn apply<S, K, WC, CR, Output>(
&mut self,
store: &mut S,
buckets: RollingBuckets<G, C, Accumulator::Contribution>,
capacity: usize,
row_key: K,
window_contribution: WC,
combine_running: CR,
) -> Result<Vec<RollingResult<G, Output>>>where
S: WindowStore,
K: Fn(&G) -> EncodedKey,
WC: Fn(&Accumulator::Output) -> Running::Contribution,
CR: Fn(&G, &Running, &Accumulator::Output, C) -> Option<Output>,
pub fn flush<S: WindowStore>(&mut self, store: &mut S) -> Result<()>
Auto Trait Implementations§
impl<G, C, Accumulator, Running> Freeze for RollingIncrementalEngine<G, C, Accumulator, Running>
impl<G, C, Accumulator, Running> RefUnwindSafe for RollingIncrementalEngine<G, C, Accumulator, Running>
impl<G, C, Accumulator, Running> Send for RollingIncrementalEngine<G, C, Accumulator, Running>
impl<G, C, Accumulator, Running> Sync for RollingIncrementalEngine<G, C, Accumulator, Running>
impl<G, C, Accumulator, Running> Unpin for RollingIncrementalEngine<G, C, Accumulator, Running>where
G: Unpin,
impl<G, C, Accumulator, Running> UnsafeUnpin for RollingIncrementalEngine<G, C, Accumulator, Running>
impl<G, C, Accumulator, Running> UnwindSafe for RollingIncrementalEngine<G, C, Accumulator, Running>
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