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.
Merge pull request apache#91 from sun-rui/add_max_min
Add maximum() and minimum() API to RDD.
- Loading branch information
Showing
5 changed files
with
106 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,26 @@ | ||
% Generated by roxygen2 (4.0.2): do not edit by hand | ||
\docType{methods} | ||
\name{maximum} | ||
\alias{maximum} | ||
\alias{maximum,RDD} | ||
\alias{maximum,RDD-method} | ||
\title{Get the maximum element of an RDD.} | ||
\usage{ | ||
maximum(rdd) | ||
|
||
\S4method{maximum}{RDD}(rdd) | ||
} | ||
\arguments{ | ||
\item{rdd}{The RDD to get the maximum element from} | ||
} | ||
\description{ | ||
Get the maximum element of an RDD. | ||
} | ||
\examples{ | ||
\dontrun{ | ||
sc <- sparkR.init() | ||
rdd <- parallelize(sc, 1:10) | ||
maximum(rdd) # 10 | ||
} | ||
} | ||
|
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,26 @@ | ||
% Generated by roxygen2 (4.0.2): do not edit by hand | ||
\docType{methods} | ||
\name{minimum} | ||
\alias{minimum} | ||
\alias{minimum,RDD} | ||
\alias{minimum,RDD-method} | ||
\title{Get the minimum element of an RDD.} | ||
\usage{ | ||
minimum(rdd) | ||
|
||
\S4method{minimum}{RDD}(rdd) | ||
} | ||
\arguments{ | ||
\item{rdd}{The RDD to get the minimum element from} | ||
} | ||
\description{ | ||
Get the minimum element of an RDD. | ||
} | ||
\examples{ | ||
\dontrun{ | ||
sc <- sparkR.init() | ||
rdd <- parallelize(sc, 1:10) | ||
minimum(rdd) # 1 | ||
} | ||
} | ||
|