cache,DataFrame-method {SparkR} | R Documentation |
Persist with the default storage level (MEMORY_ONLY).
## S4 method for signature 'DataFrame' cache(x)
x |
A SparkSQL DataFrame |
## Not run:
##D sc <- sparkR.init()
##D sqlContext <- sparkRSQL.init(sc)
##D path <- "path/to/file.json"
##D df <- jsonFile(sqlContext, path)
##D cache(df)
## End(Not run)