public class JobEdge extends Object implements Serializable
DistributionPattern.| Constructor and Description |
|---|
JobEdge(IntermediateDataSet source,
AbstractJobVertex target,
DistributionPattern distributionPattern)
Constructs a new job edge, that connects an intermediate result to a consumer task.
|
JobEdge(IntermediateDataSetID sourceId,
AbstractJobVertex target,
DistributionPattern distributionPattern)
Constructs a new job edge that refers to an intermediate result via the Id, rather than directly through
the intermediate data set structure.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connecDataSet(IntermediateDataSet dataSet) |
DistributionPattern |
getDistributionPattern()
Returns the distribution pattern used for this edge.
|
IntermediateDataSet |
getSource()
Returns the data set at the source of the edge.
|
IntermediateDataSetID |
getSourceId()
Gets the ID of the consumed data set.
|
AbstractJobVertex |
getTarget()
Returns the vertex connected to this edge.
|
boolean |
isIdReference() |
String |
toString() |
public JobEdge(IntermediateDataSet source, AbstractJobVertex target, DistributionPattern distributionPattern)
source - The data set that is at the source of this edge.target - The operation that is at the target of this edge.distributionPattern - The pattern that defines how the connection behaves in parallel.public JobEdge(IntermediateDataSetID sourceId, AbstractJobVertex target, DistributionPattern distributionPattern)
sourceId - The id of the data set that is at the source of this edge.target - The operation that is at the target of this edge.distributionPattern - The pattern that defines how the connection behaves in parallel.public IntermediateDataSet getSource()
public AbstractJobVertex getTarget()
public DistributionPattern getDistributionPattern()
public IntermediateDataSetID getSourceId()
public boolean isIdReference()
public void connecDataSet(IntermediateDataSet dataSet)
Copyright © 2015 The Apache Software Foundation. All rights reserved.