pyspark.streaming.DStream.repartition

DStream.repartition(numPartitions: int) → pyspark.streaming.dstream.DStream[T][source]

Return a new DStream with an increased or decreased level of parallelism.