morpheus.pipeline.receiver.Receiver#
- class Receiver(parent, port_number)[source]#
Bases:
objectThe
Receiverobject represents a downstream port on aStageBaseobject that gets messages from aSender.- Parameters:
- parent
morpheus.pipeline.pipeline.StageBase Parent
StageBaseobject.- port_numberint
Receiver port number.
- parent
- Attributes:
- input_schema
input_typeReturns the the upstream node’s output type, and in case of multiple upstreams this will return the common ancestor type.
is_completeA receiver is complete if all input senders are also complete.
is_partialA receiver is partially complete if any input sender is complete.
- parent
Methods
get_input_node(builder)Returns the input or parent node.
link_node(builder)The node linking phase connects all underlying stages.
The type linking phase determines the final type of the
Receiver.get_input_schema
- property input_type: type#
Returns the the upstream node’s output type, and in case of multiple upstreams this will return the common ancestor type.
- property is_complete#
A receiver is complete if all input senders are also complete.
- property is_partial#
A receiver is partially complete if any input sender is complete. Receivers are usually partially complete if there is a circular pipeline.
- link_schema()[source]#
The type linking phase determines the final type of the
Receiver.- Raises:
RuntimeError: Throws a
RuntimeErrorif the predicted input port type determined during the build phase is different than the current port type.