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 Details

  • Method Details

    • getUpstream

      public List<Node> 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

      public List<Node> 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 interface Node
      Overrides:
      getRequirements in class AbstractNode
      Returns:
      the list of upstream requirement nodes
    • after

      public Node after​(Node other)
      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 interface Node
      Overrides:
      after in class AbstractNode
      Parameters:
      other - the node after which it has to be executed
      Returns:
      the current node
      See Also:
      Node.getRequirements()
    • after

      public Node after​(Collection<Node> others)
      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 interface Node
      Overrides:
      after in class AbstractNode
      Parameters:
      others - the nodes after which it has to be executed
      Returns:
      the current node
      See Also:
      Node.getRequirements()
    • getGeneratorNode

      public StreamGenerator getGeneratorNode()
    • push

      public StreamPipeline push​(Node node)
    • getNodes

      public List<Node> getNodes()
    • setPotentialPivots

      public StreamPipeline setPotentialPivots​(Set<String> pivots)
    • getPotentialPivots

      public Set<String> getPotentialPivots()
    • setPivot

      public StreamPipeline setPivot​(String pivot)
    • getPivot

      public String getPivot()