Interface BlockingResultInfo
-
- All Superinterfaces:
IntermediateResultInfo
- All Known Implementing Classes:
AllToAllBlockingResultInfo
,BlockingInputInfo
,PointwiseBlockingResultInfo
public interface BlockingResultInfo extends IntermediateResultInfo
The blocking result info, which will be used to calculate the vertex parallelism and input infos.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getNumBytesProduced()
Return the num of bytes produced(numBytesProduced) by the producer.long
getNumBytesProduced(IndexRange partitionIndexRange, IndexRange subpartitionIndexRange)
Return the aggregated num of bytes according to the index range for partition and subpartition.Map<Integer,long[]>
getSubpartitionBytesByPartitionIndex()
Gets subpartition bytes by partition index.void
recordPartitionInfo(int partitionIndex, ResultPartitionBytes partitionBytes)
Record the information of the result partition.void
resetPartitionInfo(int partitionIndex)
Reset the information of the result partition.-
Methods inherited from interface org.apache.flink.runtime.executiongraph.IntermediateResultInfo
getNumPartitions, getNumSubpartitions, getResultId, isBroadcast, isPointwise, isSingleSubpartitionContainsAllData
-
-
-
-
Method Detail
-
getNumBytesProduced
long getNumBytesProduced()
Return the num of bytes produced(numBytesProduced) by the producer.The difference between numBytesProduced and numBytesOut : numBytesProduced represents the number of bytes actually produced, and numBytesOut represents the number of bytes sent to downstream tasks. In unicast scenarios, these two values should be equal. In broadcast scenarios, numBytesOut should be (N * numBytesProduced), where N refers to the number of subpartitions.
- Returns:
- the num of bytes produced by the producer
-
getNumBytesProduced
long getNumBytesProduced(IndexRange partitionIndexRange, IndexRange subpartitionIndexRange)
Return the aggregated num of bytes according to the index range for partition and subpartition.- Parameters:
partitionIndexRange
- range of the index of the consumed partition.subpartitionIndexRange
- range of the index of the consumed subpartition.- Returns:
- aggregated bytes according to the index ranges.
-
recordPartitionInfo
void recordPartitionInfo(int partitionIndex, ResultPartitionBytes partitionBytes)
Record the information of the result partition.- Parameters:
partitionIndex
- the intermediate result partition indexpartitionBytes
- theResultPartitionBytes
of the partition
-
resetPartitionInfo
void resetPartitionInfo(int partitionIndex)
Reset the information of the result partition.- Parameters:
partitionIndex
- the intermediate result partition index
-
-