objectFile {SparkR} | R Documentation |
The file to be loaded should be one that was previously generated by calling saveAsObjectFile() of the RDD class.
objectFile(sc, path, minSplits = NULL)
sc |
SparkContext to use |
path |
Path of file to read. A vector of multiple paths is allowed. |
minSplits |
Minimum number of splits to be created. If NULL, the default value is chosen based on available parallelism. |
RDD containing serialized R objects.
saveAsObjectFile
## Not run:
##D sc <- sparkR.init()
##D rdd <- objectFile(sc, "myfile")
## End(Not run)