forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
% Generated by roxygen2 (4.1.0): do not edit by hand | ||
% Please edit documentation in R/RDD.R | ||
\docType{methods} | ||
\name{pipeRDD} | ||
\alias{pipeRDD} | ||
\alias{pipeRDD,RDD,character-method} | ||
\title{Pipes elements to a forked externel process.} | ||
\usage{ | ||
pipeRDD(rdd, command, env = list()) | ||
|
||
\S4method{pipeRDD}{RDD,character}(rdd, command, env = list()) | ||
} | ||
\arguments{ | ||
\item{rdd}{The RDD whose elements are piped to the forked externel process.} | ||
|
||
\item{command}{The command to fork an externel process.} | ||
|
||
\item{env}{A named list to set environment variables of the externel process.} | ||
} | ||
\value{ | ||
A new RDD created by piping all elements to a forked externel process. | ||
} | ||
\description{ | ||
The same as 'pipe()' in Spark. | ||
} | ||
\examples{ | ||
\dontrun{ | ||
sc <- sparkR.init() | ||
rdd <- parallelize(sc, 1:10) | ||
collect(pipeRDD(rdd, "more") | ||
Output: c("1", "2", ..., "10") | ||
} | ||
} | ||
|