[ Web Proxy ]
URL:
Viewing: https://spark.apache.org/docs/latest/api/python/reference/api/pyspark.RDDBarrier.html [Back]  [Original]

pyspark.RDDBarrier — PySpark 4.2.0 documentation Skip to main content
Search the docs ...:

pyspark.RDDBarrier#

class pyspark.RDDBarrier(rdd)[source]#

Wraps an RDD in a barrier stage, which forces Spark to launch tasks of this stage together. RDDBarrier instances are created by RDD.barrier().

New in version 2.4.0.

Notes

This API is experimental

Methods

mapPartitions(f[,preservesPartitioning])

Returns a new RDD by applying a function to each partition of the wrapped RDD, where tasks are launched together in a barrier stage.

mapPartitionsWithIndex(f[,...])

Returns a new RDD by applying a function to each partition of the wrapped RDD, while tracking the index of the original partition.


Web Proxy Viewer  |  New URL  |  Original Page