cacheTable: Cache Table

Description Usage Arguments Value Note Examples

View source: R/catalog.R

Description

Caches the specified table in-memory.

Usage

1
2
## Default S3 method:
cacheTable(tableName)

Arguments

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.

Value

SparkDataFrame

Note

cacheTable since 1.4.0

Examples

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)

SparkR documentation built on Sept. 2, 2019, 5:05 p.m.