Description Usage Arguments Value Note Examples
Caches the specified table in-memory.
1 | cacheTable(tableName)
|
tableName |
the qualified or unqualified name that designates a table. If no database identifier is provided, it refers to a table in the current database. |
SparkDataFrame
cacheTable since 1.4.0
1 2 3 4 5 6 7 8 | ## Not run:
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
createOrReplaceTempView(df, "table")
cacheTable("table")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.