Struct OutputStream

Source
pub struct OutputStream {
Show 15 fields pub name: String, pub kind: OutputKind, pub ty: Type, pub spawn: Spawn, pub eval: Eval, pub close: Close, pub accesses: Vec<(StreamReference, Vec<(Origin, StreamAccessKind)>)>, pub accessed_by: Vec<(StreamReference, Vec<(Origin, StreamAccessKind)>)>, pub aggregated_by: Vec<(StreamReference, Origin, WindowReference)>, pub aggregates: Vec<(StreamReference, Origin, WindowReference)>, pub memory_bound: MemorizationBound, pub layer: StreamLayers, pub reference: StreamReference, pub params: Vec<Parameter>, pub tags: HashMap<String, Option<String>>,
}
Expand description

Contains all information relevant to every kind of output stream.

Refer to TimeDrivenStream, EventDrivenStream, and Trigger, as well as their respective fields in the Mir for additional information.

Fields§

§name: String

The name of the stream.

§kind: OutputKind

The kind of the output (regular output or trigger)

§ty: Type

The value type of the stream.

§spawn: Spawn

Information on the spawn behavior of the stream

§eval: Eval

Information on the evaluation behavior of the stream

§close: Close

The condition under which the stream is supposed to be closed

§accesses: Vec<(StreamReference, Vec<(Origin, StreamAccessKind)>)>

The collection of streams this stream accesses non-transitively. Includes this stream’s spawn, evaluation condition, and close expressions.

§accessed_by: Vec<(StreamReference, Vec<(Origin, StreamAccessKind)>)>

The collection of streams that access the current stream non-transitively

§aggregated_by: Vec<(StreamReference, Origin, WindowReference)>

The collection of windows that access this stream non-transitively. This includes both sliding and discrete windows.

§aggregates: Vec<(StreamReference, Origin, WindowReference)>

The collection of windows that is accessed by this stream. This includes both sliding and discrete windows.

§memory_bound: MemorizationBound

Provides the number of values of this stream’s type that need to be memorized. Refer to Type::size to get a type’s byte-size.

§layer: StreamLayers

Provides the evaluation of layer of this stream.

§reference: StreamReference

The reference referring to this stream

§params: Vec<Parameter>

The parameters of a parameterized output stream; The vector is empty in non-parametrized streams

§tags: HashMap<String, Option<String>>

The tags annotated to this stream.

Trait Implementations§

Source§

impl Clone for OutputStream

Source§

fn clone(&self) -> OutputStream

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OutputStream

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for OutputStream

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for OutputStream

Source§

fn eq(&self, other: &OutputStream) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for OutputStream

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Stream for OutputStream

Source§

fn spawn_layer(&self) -> Layer

Reports the evaluation layer of the spawn condition of the stream.
Source§

fn eval_layer(&self) -> Layer

Reports the evaluation layer of the stream.
Source§

fn name(&self) -> &str

Reports the name of the stream.
Source§

fn ty(&self) -> &Type

Returns the type of the stream.
Source§

fn is_input(&self) -> bool

Indicates whether or not the stream is an input stream.
Source§

fn is_parameterized(&self) -> bool

Indicates whether or not the stream has parameters.
Source§

fn is_spawned(&self) -> bool

Indicates whether or not the stream spawned / dynamically created.
Source§

fn is_closed(&self) -> bool

Indicates whether or not the stream is closed.
Source§

fn is_eval_filtered(&self) -> bool

Indicated whether or not the stream is filtered.
Source§

fn values_to_memorize(&self) -> MemorizationBound

Indicates how many values of the stream’s Type need to be memorized.
Source§

fn as_stream_ref(&self) -> StreamReference

Produces a stream references referring to the stream.
Source§

fn accessed_by( &self, ) -> &Vec<(StreamReference, Vec<(Origin, StreamAccessKind)>)>

Returns the collection of streams that access the stream non-transitively.
Source§

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.
Source§

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.
Source§

fn tags(&self) -> &HashMap<String, Option<String>>

Returns the tags annotated to this stream.
Source§

impl StructuralPartialEq for OutputStream

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,