cacheTable {SparkR}R Documentation

Cache Table

Description

Caches the specified table in-memory.

Usage

## Default S3 method:
cacheTable(tableName)

Arguments

tableName

The name of the table being cached

Value

SparkDataFrame

Note

cacheTable since 1.4.0

Examples

## Not run: 
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
createOrReplaceTempView(df, "table")
cacheTable("table")

## End(Not run)

[Package SparkR version 2.0.2 Index]