pyspark.streaming.DStream.countByValueΒΆ

DStream.countByValue() β†’ pyspark.streaming.dstream.DStream[Tuple[K, int]][source]ΒΆ

Return a new DStream in which each RDD contains the counts of each distinct value in each RDD of this DStream.