Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pyspark.RDD.cache#

RDD.cache()[source]#

Persist this RDD with the default storage level (MEMORY_ONLY).

New in version 0.7.0.

Returns
RDD

The sameRDD with storage level set toMEMORY_ONLY

Examples

>>>rdd=sc.range(5)>>>rdd2=rdd.cache()>>>rdd2isrddTrue>>>str(rdd.getStorageLevel())'Memory Serialized 1x Replicated'>>>_=rdd.unpersist()

[8]ページ先頭

©2009-2025 Movatter.jp