pyspark.streaming.DStream.flatMapValues

DStream.flatMapValues(f: Callable[[V], Iterable[U]]) → pyspark.streaming.dstream.DStream[Tuple[K, U]]

Return a new DStream by applying a flatmap function to the value of each key-value pairs in this DStream without changing the key.