Skip to content

Commit 168b7fe

Browse files
author
Davies Liu
committed
sort generics
1 parent b1fe460 commit 168b7fe

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

R/pkg/R/DataFrame.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,8 +1159,6 @@ setMethod("intersect",
11591159
#' df2 <- jsonFile(sqlCtx, path2)
11601160
#' exceptDF <- except(df, df2)
11611161
#' }
1162-
setGeneric("except", function(x, y) { standardGeneric("except") })
1163-
11641162
#' @rdname except
11651163
#' @export
11661164
setMethod("except",

R/pkg/R/generics.R

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ setGeneric("zipWithUniqueId", function(x) { standardGeneric("zipWithUniqueId") }
229229

230230

231231
############ Binary Functions #############
232+
233+
#' @rdname cartesian
234+
#' @export
235+
setGeneric("cartesian", function(x, other) { standardGeneric("cartesian") })
236+
232237
#' @rdname countByKey
233238
#' @export
234239
setGeneric("countByKey", function(x) { standardGeneric("countByKey") })
@@ -237,10 +242,6 @@ setGeneric("countByKey", function(x) { standardGeneric("countByKey") })
237242
#' @export
238243
setGeneric("flatMapValues", function(X, FUN) { standardGeneric("flatMapValues") })
239244

240-
#' @rdname cartesian
241-
#' @export
242-
setGeneric("cartesian", function(x, other) { standardGeneric("cartesian") })
243-
244245
#' @rdname intersection
245246
#' @export
246247
setGeneric("intersection", function(x, other, numPartitions = 1L) {
@@ -258,10 +259,6 @@ setGeneric("lookup", function(x, key) { standardGeneric("lookup") })
258259
#' @export
259260
setGeneric("mapValues", function(X, FUN) { standardGeneric("mapValues") })
260261

261-
#' @rdname values
262-
#' @export
263-
setGeneric("values", function(x) { standardGeneric("values") })
264-
265262
#' @rdname sampleByKey
266263
#' @export
267264
setGeneric("sampleByKey",
@@ -367,6 +364,7 @@ setGeneric("subtractByKey",
367364
standardGeneric("subtractByKey")
368365
})
369366

367+
370368
################### Broadcast Variable Methods #################
371369

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

390+
#' @rdname except
391+
#' @export
392+
setGeneric("except", function(x, y) { standardGeneric("except") })
393+
392394
#' @rdname filter
393395
#' @export
394396
setGeneric("filter", function(x, condition) { standardGeneric("filter") })

0 commit comments

Comments
 (0)