pub struct WindowStatefulTestHelper { /* private fields */ }Implementations§
Source§impl WindowStatefulTestHelper
impl WindowStatefulTestHelper
pub fn new(shape: RowShape, window_size: i64) -> Self
pub fn time_window_counter(window_size_seconds: i64) -> Self
pub fn count_window_sum(window_size_count: i64) -> Self
pub fn set_window_state<K>(&mut self, window_id: i64, key: K, values: &[Value])where
K: IntoEncodedKey,
pub fn get_window_state<K>(&self, window_id: i64, key: K) -> Option<Vec<Value>>where
K: IntoEncodedKey,
pub fn assert_window_state<K>(&self, window_id: i64, key: K, expected: &[Value])where
K: IntoEncodedKey,
pub fn get_window( &self, window_id: i64, ) -> Option<&HashMap<EncodedKey, EncodedRow>>
pub fn remove_window( &mut self, window_id: i64, ) -> Option<HashMap<EncodedKey, EncodedRow>>
pub fn has_window(&self, window_id: i64) -> bool
pub fn window_count(&self) -> usize
pub fn window_key_count(&self, window_id: i64) -> usize
pub fn clear(&mut self)
pub fn window_ids(&self) -> Vec<i64>
pub fn assert_window_count(&self, expected: usize)
pub fn window_for_timestamp(&self, timestamp: i64) -> i64
Auto Trait Implementations§
impl Freeze for WindowStatefulTestHelper
impl RefUnwindSafe for WindowStatefulTestHelper
impl Send for WindowStatefulTestHelper
impl Sync for WindowStatefulTestHelper
impl Unpin for WindowStatefulTestHelper
impl UnsafeUnpin for WindowStatefulTestHelper
impl UnwindSafe for WindowStatefulTestHelper
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