cache {SparkR}R Documentation

Persist an RDD

Description

Persist this RDD with the default storage level (MEMORY_ONLY).

Usage

cache(rdd)

## S4 method for signature 'RDD'
cache(rdd)

Arguments

rdd

The RDD to cache

Examples

## Not run: 
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, 1:10, 2L)
##D cache(rdd)
## End(Not run)

[Package SparkR version 0.1 Index]