pipeRDD {SparkR} | R Documentation |
The same as 'pipe()' in Spark.
pipeRDD(rdd, command, env = list()) ## S4 method for signature 'RDD,character' pipeRDD(rdd, command, env = list())
rdd |
The RDD whose elements are piped to the forked external process. |
command |
The command to fork an external process. |
env |
A named list to set environment variables of the external process. |
A new RDD created by piping all elements to a forked external process.
## Not run:
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, 1:10)
##D collect(pipeRDD(rdd, "more")
##D Output: c("1", "2", ..., "10")
## End(Not run)