pyspark.RDD.getStorageLevel

RDD.getStorageLevel() → pyspark.storagelevel.StorageLevel[source]

Get the RDD’s current storage level.

New in version 1.0.0.

Returns
StorageLevel

current StorageLevel

See also

RDD.name()

Examples

>>> rdd = sc.parallelize([1,2])
>>> rdd.getStorageLevel()
StorageLevel(False, False, False, False, 1)
>>> print(rdd.getStorageLevel())
Serialized 1x Replicated