Expand description
The TimeVersionedState
provides a default implementation of the State
for a type S.
The structure automatically commits the final state for a timestamp into a HashMap and
initializes new states for a timestamp t
by invoking their default method.
Implementations
Trait Implementations
sourceimpl<S> State for TimeVersionedState<S> where
S: 'static + Default + Send + Sync,
impl<S> State for TimeVersionedState<S> where
S: 'static + Default + Send + Sync,
sourceimpl<T, U> TwoInOneOut<TimeVersionedState<(Vec<T, Global>, Vec<U, Global>)>, T, U, (T, U)> for TimestampJoinOperator where
T: Data + for<'a> Deserialize<'a>,
U: Data + for<'a> Deserialize<'a>,
impl<T, U> TwoInOneOut<TimeVersionedState<(Vec<T, Global>, Vec<U, Global>)>, T, U, (T, U)> for TimestampJoinOperator where
T: Data + for<'a> Deserialize<'a>,
U: Data + for<'a> Deserialize<'a>,
fn on_left_data(
&mut self,
ctx: &mut TwoInOneOutContext<'_, TimeVersionedState<(Vec<T>, Vec<U>)>, (T, U)>,
data: &T
)
fn on_right_data(
&mut self,
ctx: &mut TwoInOneOutContext<'_, TimeVersionedState<(Vec<T>, Vec<U>)>, (T, U)>,
data: &U
)
fn on_watermark(
&mut self,
ctx: &mut TwoInOneOutContext<'_, TimeVersionedState<(Vec<T>, Vec<U>)>, (T, U)>
)
fn setup(&mut self, setup_context: &mut SetupContext<S>)
fn run(
&mut self,
config: &OperatorConfig,
left_read_stream: &mut ReadStream<T>,
right_read_stream: &mut ReadStream<U>,
write_stream: &mut WriteStream<V>
)
fn destroy(&mut self)
Auto Trait Implementations
impl<S> RefUnwindSafe for TimeVersionedState<S> where
S: RefUnwindSafe,
impl<S> Send for TimeVersionedState<S>
impl<S> Sync for TimeVersionedState<S>
impl<S> Unpin for TimeVersionedState<S> where
S: Unpin,
impl<S> UnwindSafe for TimeVersionedState<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more