public class JobEdge extends Object implements Serializable
DistributionPattern
.Constructor and Description |
---|
JobEdge(IntermediateDataSetID sourceId,
JobVertex 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.
|
JobEdge(IntermediateDataSet source,
JobVertex target,
DistributionPattern distributionPattern)
Constructs a new job edge, that connects an intermediate result to a consumer task.
|
Modifier and Type | Method and Description |
---|---|
void |
connecDataSet(IntermediateDataSet dataSet) |
DistributionPattern |
getDistributionPattern()
Returns the distribution pattern used for this edge.
|
String |
getOperatorLevelCachingDescription()
Gets the operator-level caching description for this input.
|
String |
getPreProcessingOperationName()
Gets the name of the pro-processing operation for this input.
|
String |
getShipStrategyName()
Gets the name of the ship strategy for the represented input, like "forward", "partition
hash", "rebalance", "broadcast", ...
|
IntermediateDataSet |
getSource()
Returns the data set at the source of the edge.
|
IntermediateDataSetID |
getSourceId()
Gets the ID of the consumed data set.
|
JobVertex |
getTarget()
Returns the vertex connected to this edge.
|
boolean |
isIdReference() |
void |
setOperatorLevelCachingDescription(String operatorLevelCachingDescription)
Sets the operator-level caching description for this input.
|
void |
setPreProcessingOperationName(String preProcessingOperationName)
Sets the name of the pre-processing operation for this input.
|
void |
setShipStrategyName(String shipStrategyName)
Sets the name of the ship strategy for the represented input.
|
String |
toString() |
public JobEdge(IntermediateDataSet source, JobVertex 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, JobVertex 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 JobVertex getTarget()
public DistributionPattern getDistributionPattern()
public IntermediateDataSetID getSourceId()
public boolean isIdReference()
public void connecDataSet(IntermediateDataSet dataSet)
public String getShipStrategyName()
public void setShipStrategyName(String shipStrategyName)
shipStrategyName
- The name of the ship strategy.public String getPreProcessingOperationName()
public void setPreProcessingOperationName(String preProcessingOperationName)
preProcessingOperationName
- The name of the pre-processing operation.public String getOperatorLevelCachingDescription()
public void setOperatorLevelCachingDescription(String operatorLevelCachingDescription)
operatorLevelCachingDescription
- The description of operator-level caching.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.