Overview
Getting Started
User Guides
API Reference
Development
Migration Guides
Spark SQL
Pandas API on Spark
Structured Streaming
MLlib (DataFrame-based)
Spark Streaming (Legacy)
MLlib (RDD-based)
Spark Core
Resource Management
Errors
pyspark.streaming.DStream.combineByKey
¶
DStream.
combineByKey
(
createCombiner
:
Callable
[
[
V
]
,
U
]
,
mergeValue
:
Callable
[
[
U
,
V
]
,
U
]
,
mergeCombiners
:
Callable
[
[
U
,
U
]
,
U
]
,
numPartitions
:
Optional
[
int
]
=
None
)
→ pyspark.streaming.dstream.DStream
[
Tuple
[
K
,
U
]
]
[source]
¶
Return a new DStream by applying combineByKey to each RDD.
pyspark.streaming.DStream.cogroup
pyspark.streaming.DStream.context