public class TaskData extends Object implements Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
TaskData.ExecutionPlan
The ExecutionPlan class represents a directed acyclic graph of the
execution flows of modules.
|
Modifier and Type | Field and Description |
---|---|
Map<Stream.Port,TaskData.ExecutionPlan.Node.Port> |
destPorts
Current nodes to execute.
|
TaskData.ExecutionPlan |
executionPlan
Global execution plan.
|
DataType |
outputType
|
Serializable |
predecessorRes
Result of the predecessor.
|
private static long |
serialVersionUID
|
Constructor and Description |
---|
TaskData(Collection<TaskData.ExecutionPlan.Node.Port> destPorts,
TaskData.ExecutionPlan executionPlan)
Create a task with an execution plan with no predecessor result.
|
TaskData(Collection<TaskData.ExecutionPlan.Node.Port> destPorts,
TaskData.ExecutionPlan executionPlan,
Serializable predecessorRes)
Create a task with an execution plan with predecessor result.
|
TaskData(TaskData.ExecutionPlan.Node.Port destPort,
TaskData.ExecutionPlan executionPlan)
Create a task with an execution plan with predecessor result.
|
TaskData(TaskData.ExecutionPlan.Node.Port destPort,
TaskData.ExecutionPlan executionPlan,
Serializable predecessorRes)
Create a task with an execution plan with predecessor result.
|
Modifier and Type | Method and Description |
---|---|
TaskData.ExecutionPlan.Node |
getDestNode(List<Stream.Port> possiblePorts)
Get the destination node which contains the given ports.
|
TaskData.ExecutionPlan.Node
|
getDestNode(Stream.Port port)
Get the destination node which contains the given port.
|
String |
toString() |
private static final long serialVersionUID
public final Map<Stream.Port,TaskData.ExecutionPlan.Node.Port> destPorts
public final TaskData.ExecutionPlan executionPlan
public final DataType outputType
public final Serializable predecessorRes
public TaskData(@Nonnull Collection<TaskData.ExecutionPlan.Node.Port> destPorts, @Nonnull TaskData.ExecutionPlan executionPlan)
destPorts
- Destination ports of this TaskData.executionPlan
- A global execution plan.public TaskData(@Nonnull TaskData.ExecutionPlan.Node.Port destPort, @Nonnull TaskData.ExecutionPlan executionPlan)
destPort
- Destination port of this TaskData.executionPlan
- A global execution plan.public TaskData(@Nonnull TaskData.ExecutionPlan.Node.Port destPort, @Nonnull TaskData.ExecutionPlan executionPlan, @Nullable Serializable predecessorRes)
destPort
- Destination port of this TaskData.executionPlan
- A global execution plan.predecessorRes
- Result of the predecessor node,
which is a serializable object.
public TaskData(@Nonnull Collection<TaskData.ExecutionPlan.Node.Port> destPorts, @Nonnull TaskData.ExecutionPlan executionPlan, @Nullable Serializable predecessorRes)
destPorts
- Destination ports of this TaskData.executionPlan
- A global execution plan.predecessorRes
- Result of the predecessor node,
which is a serializable object.
@Nullable public TaskData.ExecutionPlan.Node getDestNode(Stream.Port port)
port
- the port of the node which is one of the destination nodes in this TaskData
public TaskData.ExecutionPlan.Node getDestNode(List<Stream.Port> possiblePorts)
possiblePorts
- a list of ports of the node which contains at least
one of the destination nodes in this TaskData