DStream.
mapValues
Return a new DStream by applying a map function to the value of each key-value pairs in this DStream without changing the key.
previous
pyspark.streaming.DStream.mapPartitionsWithIndex
next
pyspark.streaming.DStream.partitionBy