Class IntermediateResult


  • public class IntermediateResult
    extends Object
    • Method Detail

      • areAllConsumerVerticesCreated

        public boolean areAllConsumerVerticesCreated()
      • getNumberOfAssignedPartitions

        public int getNumberOfAssignedPartitions()
      • getConsumingDistributionPattern

        public DistributionPattern getConsumingDistributionPattern()
      • isBroadcast

        public boolean isBroadcast()
        Determines whether the associated intermediate data set uses a broadcast distribution pattern.

        A broadcast distribution pattern indicates that all data produced by this intermediate data set should be broadcast to every downstream consumer.

        Returns:
        true if the intermediate data set is using a broadcast distribution pattern; false otherwise.
      • isForward

        public boolean isForward()
      • isSingleSubpartitionContainsAllData

        public boolean isSingleSubpartitionContainsAllData()
        Checks if a single subpartition contains all the produced data. This condition indicate that the data was intended to be broadcast to all consumers. If the decision to broadcast was made before the data production, this flag would likely be set accordingly. Conversely, if the broadcasting decision was made post-production, this flag will be false.
        Returns:
        true if a single subpartition contains all the data; false otherwise.
      • getConnectionIndex

        public int getConnectionIndex()
      • clearCachedInformationForPartitionGroup

        public void clearCachedInformationForPartitionGroup​(ConsumedPartitionGroup consumedPartitionGroup)