Package nz.org.riskscape.engine.task
Class LinkedSteps
java.lang.Object
nz.org.riskscape.engine.task.LinkedSteps
Groups together pipeline steps that can be processed in the same task. Many steps are only ever processed individually (i.e. Collectors, Joins, Relations, Sinks). But Projector and Restrictor steps can be grouped together and processed as a single task. The SchedulerBasedExecutor uses LinkedSteps in order to decompose a pipeline into tasks.
-
Constructor Summary
ConstructorDescriptionLinkedSteps
(List<LinkedSteps> predecessors, List<nz.org.riskscape.engine.pipeline.RealizedStep> steps) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
containsOnly
(Class<? extends nz.org.riskscape.engine.pipeline.Realized> lookFor) boolean
nz.org.riskscape.engine.pipeline.RealizedStep
List<nz.org.riskscape.engine.pipeline.RealizedStep>
The pipeline steps that get processed together as a single TaskSpecnz.org.riskscape.engine.pipeline.RealizedStep
getOrderedPredecessor
(int index) boolean
int
hashCode()
toString()
-
Constructor Details
-
LinkedSteps
public LinkedSteps(List<LinkedSteps> predecessors, List<nz.org.riskscape.engine.pipeline.RealizedStep> steps)
-
-
Method Details
-
getLastStep
public nz.org.riskscape.engine.pipeline.RealizedStep getLastStep() -
containsOnly
-
getOrderedPredecessor
-
getFirstStep
public nz.org.riskscape.engine.pipeline.RealizedStep getFirstStep() -
hasFanOut
public boolean hasFanOut()- Returns:
- true if these steps fan out into multiple downstream steps
-
getGrouped
The pipeline steps that get processed together as a single TaskSpec
-
getPredecessors
-
getDescendants
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-