pub trait Stream {
Show 15 methods
// Required methods
fn spawn_layer(&self) -> Layer;
fn eval_layer(&self) -> Layer;
fn name(&self) -> &str;
fn ty(&self) -> &Type;
fn is_input(&self) -> bool;
fn is_parameterized(&self) -> bool;
fn is_spawned(&self) -> bool;
fn is_closed(&self) -> bool;
fn is_eval_filtered(&self) -> bool;
fn values_to_memorize(&self) -> MemorizationBound;
fn as_stream_ref(&self) -> StreamReference;
fn accessed_by(
&self,
) -> &Vec<(StreamReference, Vec<(Origin, StreamAccessKind)>)>;
fn aggregated_by(&self) -> &[(StreamReference, Origin, WindowReference)];
fn aggregates(&self) -> &[(StreamReference, Origin, WindowReference)];
fn tags(&self) -> &HashMap<String, Option<String>>;
}
Expand description
A trait for any kind of stream.
Required Methods§
Sourcefn spawn_layer(&self) -> Layer
fn spawn_layer(&self) -> Layer
Reports the evaluation layer of the spawn condition of the stream.
Sourcefn eval_layer(&self) -> Layer
fn eval_layer(&self) -> Layer
Reports the evaluation layer of the stream.
Sourcefn is_parameterized(&self) -> bool
fn is_parameterized(&self) -> bool
Indicates whether or not the stream has parameters.
Sourcefn is_spawned(&self) -> bool
fn is_spawned(&self) -> bool
Indicates whether or not the stream spawned / dynamically created.
Sourcefn is_eval_filtered(&self) -> bool
fn is_eval_filtered(&self) -> bool
Indicated whether or not the stream is filtered.
Sourcefn values_to_memorize(&self) -> MemorizationBound
fn values_to_memorize(&self) -> MemorizationBound
Indicates how many values of the stream’s Type need to be memorized.
Sourcefn as_stream_ref(&self) -> StreamReference
fn as_stream_ref(&self) -> StreamReference
Produces a stream references referring to the stream.
Sourcefn accessed_by(
&self,
) -> &Vec<(StreamReference, Vec<(Origin, StreamAccessKind)>)>
fn accessed_by( &self, ) -> &Vec<(StreamReference, Vec<(Origin, StreamAccessKind)>)>
Returns the collection of streams that access the stream non-transitively.
Sourcefn aggregated_by(&self) -> &[(StreamReference, Origin, WindowReference)]
fn aggregated_by(&self) -> &[(StreamReference, Origin, WindowReference)]
Returns the collection of sliding windows that access the stream non-transitively. This includes both sliding and discrete windows.
Sourcefn aggregates(&self) -> &[(StreamReference, Origin, WindowReference)]
fn aggregates(&self) -> &[(StreamReference, Origin, WindowReference)]
Returns the collection of sliding windows that are accessed by the stream non-transitively. This includes both sliding and discrete windows.
Returns the tags annotated to this stream.