unpersist {SparkR} | R Documentation |
Mark the RDD as non-persistent, and remove all blocks for it from memory and disk.
unpersist(rdd) ## S4 method for signature 'RDD' unpersist(rdd)
rdd |
The RDD to unpersist |
## Not run:
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, 1:10, 2L)
##D cache(rdd) # rdd@env$isCached == TRUE
##D unpersist(rdd) # rdd@env$isCached == FALSE
## End(Not run)