Interface BlockingResultInfo

    • 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 index
        partitionBytes - the ResultPartitionBytes of the partition
      • resetPartitionInfo

        void resetPartitionInfo​(int partitionIndex)
        Reset the information of the result partition.
        Parameters:
        partitionIndex - the intermediate result partition index
      • getSubpartitionBytesByPartitionIndex

        Map<Integer,​long[]> getSubpartitionBytesByPartitionIndex()
        Gets subpartition bytes by partition index.
        Returns:
        a map with integer keys representing partition indices and long array values representing subpartition bytes.