Getting Started
User Guide
API Reference
Development
Migration Guide
Spark SQL
Pandas API on Spark
Structured Streaming
MLlib (DataFrame-based)
Spark Streaming
MLlib (RDD-based)
Spark Core
Resource Management
pyspark.streaming.DStream.reduceByKey
¶
DStream.
reduceByKey
(
func
,
numPartitions
=
None
)
[source]
¶
Return a new DStream by applying reduceByKey to each RDD.
pyspark.streaming.DStream.reduce
pyspark.streaming.DStream.reduceByKeyAndWindow