saveAsObjectFile {SparkR}R Documentation

Save this RDD as a SequenceFile of serialized objects.

Description

Save this RDD as a SequenceFile of serialized objects.

Usage

saveAsObjectFile(rdd, path)

## S4 method for signature 'RDD,character'
saveAsObjectFile(rdd, path)

Arguments

rdd

The RDD to save

path

The directory where the file is saved

See Also

objectFile

Examples

## Not run: 
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, 1:3)
##D saveAsObjectFile(rdd, "/tmp/sparkR-tmp")
## End(Not run)

[Package SparkR version 0.1 Index]