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 |
DataFrame
## Not run: sc <- sparkR.init() sqlContext <- sparkRSQL.init(sc) path <- "path/to/file.json" df <- read.json(sqlContext, path) registerTempTable(df, "table") cacheTable(sqlContext, "table") ## End(Not run)