persist,DataFrame,character-method {SparkR}R Documentation

Persist

Description

Persist this DataFrame with the specified storage level. For details of the supported storage levels, refer to http://spark.apache.org/docs/latest/programming-guide.html#rdd-persistence.

Usage

## S4 method for signature 'DataFrame,character'
persist(x, newLevel)

Arguments

x

The DataFrame to persist

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")
## End(Not run)

[Package SparkR version 1.4.1 Index]