pub struct MultiRollingEngine<G, C, Accumulator, SK, Output> { /* private fields */ }Implementations§
Source§impl<G, C, Accumulator, SK, Output> MultiRollingEngine<G, C, Accumulator, SK, Output>where
G: Clone + Eq + Ord + Hash + Debug + Serialize + DeserializeOwned,
C: Slot + Hash + Serialize + DeserializeOwned,
Accumulator: WindowAccumulator,
SK: Clone + Eq + Ord + Hash + Debug + Serialize + DeserializeOwned,
Output: Clone + Debug + PartialEq + Serialize + DeserializeOwned,
for<'a> &'a G: IntoEncodedKey,
impl<G, C, Accumulator, SK, Output> MultiRollingEngine<G, C, Accumulator, SK, Output>where
G: Clone + Eq + Ord + Hash + Debug + Serialize + DeserializeOwned,
C: Slot + Hash + Serialize + DeserializeOwned,
Accumulator: WindowAccumulator,
SK: Clone + Eq + Ord + Hash + Debug + Serialize + DeserializeOwned,
Output: Clone + Debug + PartialEq + Serialize + DeserializeOwned,
for<'a> &'a G: IntoEncodedKey,
pub fn new() -> Self
pub fn with_late_policy(late_policy: LatePolicy) -> Self
pub fn apply<S, SKF, RKF, CB>(
&mut self,
store: &mut S,
buckets: RollingBuckets<G, C, Accumulator::Contribution>,
capacity: usize,
state_key: SKF,
row_key: RKF,
combine: CB,
) -> Result<Vec<MultiEmit<Output>>>where
S: WindowStore,
SKF: Fn(&G) -> EncodedKey,
RKF: Fn(&G, &SK) -> EncodedKey,
CB: Fn(&G, &MultiRollingBuffer<C, Accumulator>) -> MultiRollingEmit<SK, Output>,
pub fn flush<S: WindowStore>(&mut self, store: &mut S) -> Result<()>
Trait Implementations§
Source§impl<G, C, Accumulator, SK, Output> Default for MultiRollingEngine<G, C, Accumulator, SK, Output>where
G: Clone + Eq + Ord + Hash + Debug + Serialize + DeserializeOwned,
C: Slot + Hash + Serialize + DeserializeOwned,
Accumulator: WindowAccumulator,
SK: Clone + Eq + Ord + Hash + Debug + Serialize + DeserializeOwned,
Output: Clone + Debug + PartialEq + Serialize + DeserializeOwned,
for<'a> &'a G: IntoEncodedKey,
impl<G, C, Accumulator, SK, Output> Default for MultiRollingEngine<G, C, Accumulator, SK, Output>where
G: Clone + Eq + Ord + Hash + Debug + Serialize + DeserializeOwned,
C: Slot + Hash + Serialize + DeserializeOwned,
Accumulator: WindowAccumulator,
SK: Clone + Eq + Ord + Hash + Debug + Serialize + DeserializeOwned,
Output: Clone + Debug + PartialEq + Serialize + DeserializeOwned,
for<'a> &'a G: IntoEncodedKey,
Auto Trait Implementations§
impl<G, C, Accumulator, SK, Output> Freeze for MultiRollingEngine<G, C, Accumulator, SK, Output>
impl<G, C, Accumulator, SK, Output> RefUnwindSafe for MultiRollingEngine<G, C, Accumulator, SK, Output>where
G: RefUnwindSafe,
C: RefUnwindSafe,
Accumulator: RefUnwindSafe,
SK: RefUnwindSafe,
Output: RefUnwindSafe,
impl<G, C, Accumulator, SK, Output> Send for MultiRollingEngine<G, C, Accumulator, SK, Output>
impl<G, C, Accumulator, SK, Output> Sync for MultiRollingEngine<G, C, Accumulator, SK, Output>
impl<G, C, Accumulator, SK, Output> Unpin for MultiRollingEngine<G, C, Accumulator, SK, Output>where
G: Unpin,
impl<G, C, Accumulator, SK, Output> UnsafeUnpin for MultiRollingEngine<G, C, Accumulator, SK, Output>
impl<G, C, Accumulator, SK, Output> UnwindSafe for MultiRollingEngine<G, C, Accumulator, SK, Output>where
G: UnwindSafe,
C: RefUnwindSafe,
Accumulator: RefUnwindSafe,
SK: RefUnwindSafe,
Output: RefUnwindSafe,
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