pyspark.RDD.getStorageLevel

RDD.getStorageLevel() → pyspark.storagelevel.StorageLevel

Get the RDD’s current storage level.

Examples

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