Skip to content

Commit

Permalink
sort generics
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Liu committed Apr 14, 2015
1 parent b1fe460 commit 168b7fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 0 additions & 2 deletions R/pkg/R/DataFrame.R
Original file line number Diff line number Diff line change
Expand Up @@ -1159,8 +1159,6 @@ setMethod("intersect",
#' df2 <- jsonFile(sqlCtx, path2)
#' exceptDF <- except(df, df2)
#' }
setGeneric("except", function(x, y) { standardGeneric("except") })

#' @rdname except
#' @export
setMethod("except",
Expand Down
18 changes: 10 additions & 8 deletions R/pkg/R/generics.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ setGeneric("zipWithUniqueId", function(x) { standardGeneric("zipWithUniqueId") }


############ Binary Functions #############

#' @rdname cartesian
#' @export
setGeneric("cartesian", function(x, other) { standardGeneric("cartesian") })

#' @rdname countByKey
#' @export
setGeneric("countByKey", function(x) { standardGeneric("countByKey") })
Expand All @@ -237,10 +242,6 @@ setGeneric("countByKey", function(x) { standardGeneric("countByKey") })
#' @export
setGeneric("flatMapValues", function(X, FUN) { standardGeneric("flatMapValues") })

#' @rdname cartesian
#' @export
setGeneric("cartesian", function(x, other) { standardGeneric("cartesian") })

#' @rdname intersection
#' @export
setGeneric("intersection", function(x, other, numPartitions = 1L) {
Expand All @@ -258,10 +259,6 @@ setGeneric("lookup", function(x, key) { standardGeneric("lookup") })
#' @export
setGeneric("mapValues", function(X, FUN) { standardGeneric("mapValues") })

#' @rdname values
#' @export
setGeneric("values", function(x) { standardGeneric("values") })

#' @rdname sampleByKey
#' @export
setGeneric("sampleByKey",
Expand Down Expand Up @@ -367,6 +364,7 @@ setGeneric("subtractByKey",
standardGeneric("subtractByKey")
})


################### Broadcast Variable Methods #################

#' @rdname broadcast
Expand All @@ -389,6 +387,10 @@ setGeneric("dtypes", function(x) { standardGeneric("dtypes") })
#' @export
setGeneric("explain", function(x, ...) { standardGeneric("explain") })

#' @rdname except
#' @export
setGeneric("except", function(x, y) { standardGeneric("except") })

#' @rdname filter
#' @export
setGeneric("filter", function(x, condition) { standardGeneric("filter") })
Expand Down

0 comments on commit 168b7fe

Please sign in to comment.