Class StreamPipeline
java.lang.Object
com.lumiomedical.flow.node.AbstractNode
com.lumiomedical.flow.impl.pipeline.compiler.stream.StreamPipeline
- All Implemented Interfaces:
Node
,Comparable<Node>
public class StreamPipeline extends AbstractNode
- Author:
- Pierre Lecerf ([email protected]) Created on 2020/12/03
-
Constructor Summary
Constructors Constructor Description StreamPipeline(StreamGenerator generatorNode)
-
Method Summary
Modifier and Type Method Description Node
after(Node other)
Requests for the current node to be executed after the provided node.Node
after(Collection<Node> others)
Requests for the current node to be executed after the provided nodes.StreamGenerator
getGeneratorNode()
List<Node>
getNodes()
String
getPivot()
Set<String>
getPotentialPivots()
List<Node>
getRequirements()
Returns the list of upstream requirement nodes, ie. nodes which need to be executed before, but which outputs aren't required for execution.List<Node>
getUpstream()
Returns the list of upstream nodes, ie. nodes which output is required in order to execute the current node.StreamPipeline
push(Node node)
StreamPipeline
setPivot(String pivot)
StreamPipeline
setPotentialPivots(Set<String> pivots)
Methods inherited from class com.lumiomedical.flow.node.AbstractNode
equals, getDownstream, getRequiredBy, getUid, hashCode
-
Constructor Details
-
StreamPipeline
- Parameters:
generatorNode
-
-
-
Method Details
-
getUpstream
Description copied from interface:Node
Returns the list of upstream nodes, ie. nodes which output is required in order to execute the current node. For Source nodes, this should be empty. For Pipe and Sink nodes, this should be a list of size 1. For Join nodes, this should be a list of size 2.- Returns:
- the list of upstream nodes
-
getRequirements
Description copied from interface:Node
Returns the list of upstream requirement nodes, ie. nodes which need to be executed before, but which outputs aren't required for execution. There can be any number of requirements for a given node.- Specified by:
getRequirements
in interfaceNode
- Overrides:
getRequirements
in classAbstractNode
- Returns:
- the list of upstream requirement nodes
-
after
Description copied from interface:Node
Requests for the current node to be executed after the provided node. It should result in the current node having a requirement towards the provided node.- Specified by:
after
in interfaceNode
- Overrides:
after
in classAbstractNode
- Parameters:
other
- the node after which it has to be executed- Returns:
- the current node
- See Also:
Node.getRequirements()
-
after
Description copied from interface:Node
Requests for the current node to be executed after the provided nodes. It should result in the current node having a requirement towards each node in the provided collection.- Specified by:
after
in interfaceNode
- Overrides:
after
in classAbstractNode
- Parameters:
others
- the nodes after which it has to be executed- Returns:
- the current node
- See Also:
Node.getRequirements()
-
getGeneratorNode
-
push
-
getNodes
-
setPotentialPivots
-
getPotentialPivots
-
setPivot
-
getPivot
-