persist,DataFrame,character-method {SparkR} | R Documentation |
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.
## S4 method for signature 'DataFrame,character' persist(x, newLevel)
x |
The DataFrame to persist |
## 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)