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.map
¶
DStream.
map
(
f
:
Callable
[
[
T
]
,
U
]
,
preservesPartitioning
:
bool
=
False
)
→ pyspark.streaming.dstream.DStream
[
U
]
[source]
¶
Return a new DStream by applying a function to each element of DStream.
pyspark.streaming.DStream.leftOuterJoin
pyspark.streaming.DStream.mapPartitions