unpersist,DataFrame-method {SparkR}R Documentation

Unpersist

Description

Mark this DataFrame as non-persistent, and remove all blocks for it from memory and disk.

Usage

## S4 method for signature 'DataFrame'
unpersist(x, blocking = TRUE)

Arguments

x

The DataFrame to unpersist

blocking

Whether to block until all blocks are deleted

Examples

## 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)

[Package SparkR version 1.4.0 Index]