public final class ExecutionStage extends Object
This class is thread-safe.
| Constructor and Description |
|---|
ExecutionStage(ExecutionGraph executionGraph,
int stageNum)
Constructs a new execution stage and assigns the given stage number to it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStageMember(ExecutionGroupVertex groupVertex)
Adds a new execution group vertex to this stage if it is not already included.
|
ExecutionGraph |
getExecutionGraph()
Returns the execution graph that this stage belongs to.
|
ExecutionVertex |
getInputExecutionVertex(int index)
Returns the output execution vertex with the given index or
null if no such vertex exists. |
int |
getMaxNumberSubtasks() |
int |
getNumberOfInputExecutionVertices()
Returns the number of input execution vertices in this stage, i.e.
|
int |
getNumberOfOutputExecutionVertices()
Returns the number of output execution vertices in this stage, i.e.
|
int |
getNumberOfStageMembers()
Returns the number of group vertices this execution stage includes.
|
ExecutionVertex |
getOutputExecutionVertex(int index)
Returns the input execution vertex with the given index or
null if no such vertex exists. |
int |
getRequiredSlots() |
ExecutionGroupVertex |
getStageMember(int index)
Returns the stage member internally stored at index
index. |
int |
getStageNumber()
Returns the number of this execution stage.
|
void |
removeStageMember(ExecutionGroupVertex groupVertex)
Removes the specified group vertex from the execution stage.
|
void |
setStageNumber(int stageNum)
Sets the number of this execution stage.
|
public ExecutionStage(ExecutionGraph executionGraph, int stageNum)
executionGraph - the executionGraph that this stage belongs tostageNum - the number of this execution stagepublic void setStageNumber(int stageNum)
stageNum - the new number of this execution stagepublic int getStageNumber()
public void addStageMember(ExecutionGroupVertex groupVertex)
groupVertex - the new execution group vertex to includepublic void removeStageMember(ExecutionGroupVertex groupVertex)
groupVertex - the group vertex to remove from the stagepublic int getNumberOfStageMembers()
public ExecutionGroupVertex getStageMember(int index)
index.index - the index of the group vertex to returnnull if no group vertex exists
with such an indexpublic int getNumberOfInputExecutionVertices()
public int getNumberOfOutputExecutionVertices()
public ExecutionVertex getInputExecutionVertex(int index)
null if no such vertex exists.index - the index of the vertex to be selected.null if no such vertex existspublic ExecutionVertex getOutputExecutionVertex(int index)
null if no such vertex exists.index - the index of the vertex to be selected.null if no such vertex existspublic ExecutionGraph getExecutionGraph()
public int getMaxNumberSubtasks()
public int getRequiredSlots()
Copyright © 2014 The Apache Software Foundation. All rights reserved.