Class IntermediateResult
- java.lang.Object
-
- org.apache.flink.runtime.executiongraph.IntermediateResult
-
public class IntermediateResult extends Object
-
-
Constructor Summary
Constructors Constructor Description IntermediateResult(IntermediateDataSet intermediateDataSet, ExecutionJobVertex producer, int numParallelProducers, ResultPartitionType resultType)
-
Method Summary
-
-
-
Constructor Detail
-
IntermediateResult
public IntermediateResult(IntermediateDataSet intermediateDataSet, ExecutionJobVertex producer, int numParallelProducers, ResultPartitionType resultType)
-
-
Method Detail
-
setPartition
public void setPartition(int partitionNumber, IntermediateResultPartition partition)
-
getId
public IntermediateDataSetID getId()
-
getProducer
public ExecutionJobVertex getProducer()
-
getPartitions
public IntermediateResultPartition[] getPartitions()
-
getConsumerVertices
public List<JobVertexID> getConsumerVertices()
-
getPartitionById
public IntermediateResultPartition getPartitionById(IntermediateResultPartitionID resultPartitionId)
Returns the partition with the given ID.- Parameters:
resultPartitionId
- ID of the partition to look up- Returns:
- Intermediate result partition with the given ID
- Throws:
NullPointerException
- If partition IDnull
IllegalArgumentException
- Thrown if unknown partition ID
-
getNumberOfAssignedPartitions
public int getNumberOfAssignedPartitions()
-
getResultType
public ResultPartitionType getResultType()
-
getConsumingDistributionPattern
public DistributionPattern getConsumingDistributionPattern()
-
isBroadcast
public boolean isBroadcast()
-
getConnectionIndex
public int getConnectionIndex()
-
getCachedShuffleDescriptors
public CachedShuffleDescriptors getCachedShuffleDescriptors(ConsumedPartitionGroup consumedPartitionGroup)
-
cacheShuffleDescriptors
public CachedShuffleDescriptors cacheShuffleDescriptors(ConsumedPartitionGroup consumedPartitionGroup, TaskDeploymentDescriptorFactory.ShuffleDescriptorAndIndex[] shuffleDescriptors)
-
markPartitionFinished
public void markPartitionFinished(ConsumedPartitionGroup consumedPartitionGroup, IntermediateResultPartition resultPartition)
-
clearCachedInformationForPartitionGroup
public void clearCachedInformationForPartitionGroup(ConsumedPartitionGroup consumedPartitionGroup)
-
-