pub struct Delta0<D> { /* private fields */ }Expand description
delta_0 DBSP operator.
delta_0 is an
import operator, i.e.,
an operator that makes the contents of a parent stream available
inside the child circuit. At the first nested clock cycle, it reads and
outputs a value from the parent stream. During subsequent nested clock
cycles, it outputs zero.
§Examples
Given a parent stream
[1, 2, 3, 4, ...]the delta_0 operator produces the following nested stream (each row in
the matrix represents a nested clock epoch):
┌ ┐
│1 0 0 0 ...│
│2 0 0 0 ...│
│3 0 0 0 ...|
|4 0 0 0 ...|
└ ┘Implementations§
Trait Implementations§
Source§impl<D> ImportOperator<D, D> for Delta0<D>
impl<D> ImportOperator<D, D> for Delta0<D>
Source§fn input_preference(&self) -> OwnershipPreference
fn input_preference(&self) -> OwnershipPreference
Ownership preference on the operator’s input stream
(see OwnershipPreference).
Source§fn import_owned(&mut self, val: D)
fn import_owned(&mut self, val: D)
Consumes a value from the parent stream by value.
Source§impl<D> Operator for Delta0<D>where
D: Data,
impl<D> Operator for Delta0<D>where
D: Data,
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 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 is_flush_complete(&self) -> bool
fn is_flush_complete(&self) -> bool
Auto Trait Implementations§
impl<D> Freeze for Delta0<D>where
D: Freeze,
impl<D> RefUnwindSafe for Delta0<D>where
D: RefUnwindSafe,
impl<D> Send for Delta0<D>where
D: Send,
impl<D> Sync for Delta0<D>where
D: Sync,
impl<D> Unpin for Delta0<D>where
D: Unpin,
impl<D> UnsafeUnpin for Delta0<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for Delta0<D>where
D: 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
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.