Skip to content

Commit ed691eb

Browse files
committed
add numPartitions as alias of getNumPartitions
1 parent 6870073 commit ed691eb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

R/pkg/R/RDD.R

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,17 @@ setMethod("getNumPartitions",
317317
callJMethod(getJRDD(x), "getNumPartitions")
318318
})
319319

320+
#' numPartitions is the same as getNumPartitions
321+
#'
322+
#' @rdname getNumPartitions
323+
#' @aliases numPartitions,RDD-method
324+
#' @noRd
325+
setMethod("numPartitions",
326+
signature(x = "RDD"),
327+
function(x) {
328+
getNumPartitions(x)
329+
})
330+
320331
#' Collect elements of an RDD
321332
#'
322333
#' @description

0 commit comments

Comments
 (0)