pub struct TransactionGenerator<T, F> { /* private fields */ }Expand description
A version of Generator that passes a flag to the generator function when flush has been called, giving it a chance
to produce one output per transaction.
Implementations§
Source§impl<T, F> TransactionGenerator<T, F>
impl<T, F> TransactionGenerator<T, F>
Trait Implementations§
Source§impl<T, F> Operator for TransactionGenerator<T, F>where
T: 'static,
F: 'static,
impl<T, F> Operator for TransactionGenerator<T, F>where
T: 'static,
F: 'static,
Source§fn flush(&mut self)
fn flush(&mut self)
Notifies the operator that all of its predecessors have produced
all outputs for the current transaction. Read more
Source§fn fixedpoint(&self, _scope: Scope) -> bool
fn fixedpoint(&self, _scope: Scope) -> bool
Check if the operator is in a stable state. Read more
Source§fn location(&self) -> OperatorLocation
fn location(&self) -> OperatorLocation
The location the operator was created at
Source§fn init(&mut self, _global_id: &GlobalNodeId)
fn init(&mut self, _global_id: &GlobalNodeId)
Initialize the operator
Source§fn metadata(&self, _meta: &mut OperatorMeta)
fn metadata(&self, _meta: &mut OperatorMeta)
Collects metadata about the current operator
Source§fn clock_start(&mut self, _scope: Scope)
fn clock_start(&mut self, _scope: Scope)
Notify the operator about the start of a new clock epoch. Read more
fn clock_end(&mut self, _scope: Scope)
Source§fn register_ready_callback<F>(&mut self, _cb: F)
fn register_ready_callback<F>(&mut self, _cb: F)
Register callback to be invoked when an asynchronous operator becomes
ready. Read more
Source§fn checkpoint(
&mut self,
base: &StoragePath,
persistent_id: Option<&str>,
files: &mut Vec<Arc<dyn FileCommitter>>,
) -> Result<(), Error>
fn checkpoint( &mut self, base: &StoragePath, persistent_id: Option<&str>, files: &mut Vec<Arc<dyn FileCommitter>>, ) -> Result<(), Error>
Instructs the operator to checkpoint its state to persistent storage in
directory
base. Any files that the operator creates should have
persistent_id in their names to keep them unique. Read moreSource§fn restore(
&mut self,
base: &StoragePath,
persistent_id: Option<&str>,
) -> Result<(), Error>
fn restore( &mut self, base: &StoragePath, persistent_id: Option<&str>, ) -> Result<(), Error>
Instruct the operator to restore its state from persistent storage in
directory
base, using persistent_id to find its files. Read moreSource§fn start_replay(&mut self) -> Result<(), Error>
fn start_replay(&mut self) -> Result<(), Error>
Start replaying the operator’s state to the replay stream. Read more
Source§fn is_replay_complete(&self) -> bool
fn is_replay_complete(&self) -> bool
Check if the operator has finished replaying its state. Read more
Source§fn end_replay(&mut self) -> Result<(), Error>
fn end_replay(&mut self) -> Result<(), Error>
Cleanup any state needed for replay and prepare the operator for normal operation. Read more
Source§fn start_transaction(&mut self)
fn start_transaction(&mut self)
Notify the operator about start of a transaction. Read more
Source§fn is_flush_complete(&self) -> bool
fn is_flush_complete(&self) -> bool
Invoked after
flush after each eval call to check if all outputs
have been produced. Because it is invoked only after calling eval,
every operator must produce at least one output. Read moreSource§fn flush_progress(&self) -> Option<Position>
fn flush_progress(&self) -> Option<Position>
Returns the current progress of the operator in processing the current transaction. Read more
Source§fn start_compaction(&mut self)
fn start_compaction(&mut self)
Start compaction of the operator’s state. Read more
Source§fn is_compaction_complete(&self) -> bool
fn is_compaction_complete(&self) -> bool
Returns
true when the operator’s background compaction has fully
converged. Operators without a trace always return true.Source§impl<T, F> SourceOperator<T> for TransactionGenerator<T, F>
impl<T, F> SourceOperator<T> for TransactionGenerator<T, F>
Auto Trait Implementations§
impl<T, F> Freeze for TransactionGenerator<T, F>where
F: Freeze,
impl<T, F> RefUnwindSafe for TransactionGenerator<T, F>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for TransactionGenerator<T, F>
impl<T, F> Sync for TransactionGenerator<T, F>
impl<T, F> Unpin for TransactionGenerator<T, F>
impl<T, F> UnsafeUnpin for TransactionGenerator<T, F>where
F: UnsafeUnpin,
impl<T, F> UnwindSafe for TransactionGenerator<T, F>where
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.