cacheTable {SparkR} | R Documentation |
Caches the specified table in-memory.
cacheTable(sqlContext, tableName)
sqlContext |
SQLContext to use |
tableName |
The name of the table being cached |
SparkDataFrame
## Not run:
##D sc <- sparkR.init()
##D sqlContext <- sparkRSQL.init(sc)
##D path <- "path/to/file.json"
##D df <- read.json(sqlContext, path)
##D registerTempTable(df, "table")
##D cacheTable(sqlContext, "table")
## End(Not run)