unpersist {SparkR} | R Documentation |
Mark this DataFrame as non-persistent, and remove all blocks for it from memory and disk.
## S4 method for signature 'DataFrame' unpersist(x, blocking = TRUE)
x |
The DataFrame to unpersist |
blocking |
Whether to block until all blocks are deleted |
## Not run:
##D sc <- sparkR.init()
##D sqlContext <- sparkRSQL.init(sc)
##D path <- "path/to/file.json"
##D df <- jsonFile(sqlContext, path)
##D persist(df, "MEMORY_AND_DISK")
##D unpersist(df)
## End(Not run)