public final class ExecutionGroupVertex extends Object
This class is thread-safe.
| Constructor and Description |
|---|
ExecutionGroupVertex(String name,
JobVertexID jobVertexID,
ExecutionGraph executionGraph,
int userDefinedNumberOfMembers,
boolean userDefinedVertexToShareInstanceWith,
int numberOfExecutionRetries,
Configuration configuration,
ExecutionSignature signature,
Class<? extends AbstractInvokable> invokableClass)
Constructs a new group vertex.
|
| Modifier and Type | Method and Description |
|---|---|
ExecutionGroupEdge |
getBackwardEdge(int index) |
List<ExecutionGroupEdge> |
getBackwardEdges(ExecutionGroupVertex groupVertex) |
Configuration |
getConfiguration()
Returns the configuration object of the original job vertex.
|
int |
getCurrentNumberOfGroupMembers()
Returns the current number of members this group vertex has.
|
ExecutionSignature |
getExecutionSignature()
Returns the execution signature of this vertex.
|
ExecutionStage |
getExecutionStage()
Returns the execution stage this group vertex is associated with.
|
ExecutionGroupEdge |
getForwardEdge(int index) |
List<ExecutionGroupEdge> |
getForwardEdges(ExecutionGroupVertex groupVertex) |
ExecutionVertex |
getGroupMember(int pos)
Returns a specific execution vertex from the list of members.
|
InputSplit[] |
getInputSplits()
Returns the input splits assigned to this group vertex.
|
Class<? extends InputSplit> |
getInputSplitType()
Returns the input split type class
|
JobVertexID |
getJobVertexID()
Returns the ID of the job vertex which is represented by
this group vertex.
|
String |
getName()
Returns the name of the group vertex, usually copied from the initial job vertex.
|
int |
getNumberOfBackwardLinks()
Returns the number of backward links the current group vertex has.
|
int |
getNumberOfForwardLinks()
Returns the number of forward links the current group vertex has.
|
int |
getStageNumber()
Returns the number of the stage this group vertex belongs to.
|
ExecutionGroupVertex |
getVertexToShareInstancesWith() |
boolean |
isInputVertex()
Checks if this vertex is an input vertex in its stage, i.e.
|
boolean |
isOutputVertex()
Checks if this vertex is an output vertex in its stage, i.e.
|
Iterator<ExecutionVertex> |
iterator()
Returns an iterator over all members of this execution group vertex.
|
void |
setExecutionStage(ExecutionStage executionStage)
Sets the execution stage this group vertex is associated with.
|
void |
setInputSplits(InputSplit[] inputSplits)
Sets the input splits that should be assigned to this group vertex.
|
void |
setInputSplitType(Class<? extends InputSplit> inputSplitType)
Sets the input split type class
|
public ExecutionGroupVertex(String name, JobVertexID jobVertexID, ExecutionGraph executionGraph, int userDefinedNumberOfMembers, boolean userDefinedVertexToShareInstanceWith, int numberOfExecutionRetries, Configuration configuration, ExecutionSignature signature, Class<? extends AbstractInvokable> invokableClass) throws Exception
name - the name of the group vertexjobVertexID - the ID of the job vertex which is represented by this group vertexexecutionGraph - the execution graph is group vertex belongs touserDefinedNumberOfMembers - the user defined number of subtasks, -1 if the user did not specify the numberuserDefinedVertexToShareInstanceWith - true if the user specified another vertex to share instances with, false
otherwisenumberOfExecutionRetries - the number of retries in case of an error before the task represented by this vertex is considered as
failed, -1 if the user did not specify the numberconfiguration - the vertex's configuration objectsignature - the cryptographic signature of the vertexinvokableClass - the task class that is assigned to execution vertices of this groupException - throws if an error occurs while instantiating the AbstractInvokablepublic String getName()
public void setExecutionStage(ExecutionStage executionStage)
executionStage - The new execution stage.public ExecutionStage getExecutionStage()
public ExecutionVertex getGroupMember(int pos)
pos - The position of the execution vertex to be returned.pos of the member list, null if there is no
such position.public int getCurrentNumberOfGroupMembers()
public int getNumberOfForwardLinks()
public int getNumberOfBackwardLinks()
public int getStageNumber()
public void setInputSplits(InputSplit[] inputSplits)
inputSplits - the input splits that shall be assigned to this group vertexpublic void setInputSplitType(Class<? extends InputSplit> inputSplitType)
inputSplitType - Input split type classpublic InputSplit[] getInputSplits()
null if the group vertex does not represent an input vertexpublic Class<? extends InputSplit> getInputSplitType()
null if the group vertex does not represent an input
vertexpublic ExecutionGroupEdge getForwardEdge(int index)
public ExecutionGroupEdge getBackwardEdge(int index)
public List<ExecutionGroupEdge> getForwardEdges(ExecutionGroupVertex groupVertex)
public List<ExecutionGroupEdge> getBackwardEdges(ExecutionGroupVertex groupVertex)
public Configuration getConfiguration()
public ExecutionSignature getExecutionSignature()
public boolean isInputVertex()
true if this vertex is an input vertex, false otherwisepublic boolean isOutputVertex()
true if this vertex is an output vertex, false otherwisepublic ExecutionGroupVertex getVertexToShareInstancesWith()
public JobVertexID getJobVertexID()
public Iterator<ExecutionVertex> iterator()
Copyright © 2014 The Apache Software Foundation. All rights reserved.