pub trait JoinWindowStore<K: Send + Sync, V: Send>: StateStore {
// Required methods
fn put<'life0, 'async_trait>(
&'life0 mut self,
key: K,
timestamp: i64,
value: V,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 K,
time_from: i64,
time_to: i64,
) -> Pin<Box<dyn Future<Output = Vec<(i64, V)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
A typed windowed store that retains duplicates.
Every put with the same (key, timestamp) builds a distinct composite key
from an incrementing seqnum, so the duplicates coexist in the backend. The
store keeps the values RAW, with no ValueAndTimestamp wrap. The
stream-stream join processors use it.
Required Methods§
fn put<'life0, 'async_trait>(
&'life0 mut self,
key: K,
timestamp: i64,
value: V,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 K,
time_from: i64,
time_to: i64,
) -> Pin<Box<dyn Future<Output = Vec<(i64, V)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".