public class JobEdge extends Object implements Serializable
DistributionPattern
.Constructor and Description |
---|
JobEdge(IntermediateDataSet source,
JobVertex target,
DistributionPattern distributionPattern,
boolean isBroadcast)
Constructs a new job edge, that connects an intermediate result to a consumer task.
|
Modifier and Type | Method and Description |
---|---|
DistributionPattern |
getDistributionPattern()
Returns the distribution pattern used for this edge.
|
SubtaskStateMapper |
getDownstreamSubtaskStateMapper()
Gets the channel state rescaler used for rescaling persisted data on downstream side of this
JobEdge.
|
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.
|
SubtaskStateMapper |
getUpstreamSubtaskStateMapper()
Gets the channel state rescaler used for rescaling persisted data on upstream side of this
JobEdge.
|
boolean |
isBroadcast()
Gets whether the edge is broadcast edge.
|
boolean |
isForward()
Gets whether the edge is forward edge.
|
void |
setDownstreamSubtaskStateMapper(SubtaskStateMapper downstreamSubtaskStateMapper)
Sets the channel state rescaler used for rescaling persisted data on downstream side of this
JobEdge.
|
void |
setForward(boolean forward)
Sets whether the edge is forward edge.
|
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.
|
void |
setUpstreamSubtaskStateMapper(SubtaskStateMapper upstreamSubtaskStateMapper)
Sets the channel state rescaler used for rescaling persisted data on upstream side of this
JobEdge.
|
String |
toString() |
public JobEdge(IntermediateDataSet source, JobVertex target, DistributionPattern distributionPattern, boolean isBroadcast)
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.isBroadcast
- Whether the source broadcasts data to the target.public IntermediateDataSet getSource()
public JobVertex getTarget()
public DistributionPattern getDistributionPattern()
public IntermediateDataSetID getSourceId()
public String getShipStrategyName()
public void setShipStrategyName(String shipStrategyName)
shipStrategyName
- The name of the ship strategy.public boolean isBroadcast()
public boolean isForward()
public void setForward(boolean forward)
public SubtaskStateMapper getDownstreamSubtaskStateMapper()
public void setDownstreamSubtaskStateMapper(SubtaskStateMapper downstreamSubtaskStateMapper)
downstreamSubtaskStateMapper
- The channel state rescaler selector to use.public SubtaskStateMapper getUpstreamSubtaskStateMapper()
public void setUpstreamSubtaskStateMapper(SubtaskStateMapper upstreamSubtaskStateMapper)
upstreamSubtaskStateMapper
- The channel state rescaler selector to use.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–2024 The Apache Software Foundation. All rights reserved.