pyspark.RDD.id#

RDD.id()[source]#

A unique ID for this RDD (within its SparkContext).

New in version 0.7.0.

Returns
int

The unique ID for this RDD

Examples

>>> rdd = sc.range(5)
>>> rdd.id()  
3