Skip to content

Commit c17ce80

Browse files
committed
add .Deprecated
1 parent 94c596d commit c17ce80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/pkg/R/RDD.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,14 +317,16 @@ setMethod("getNumPartitions",
317317
callJMethod(getJRDD(x), "getNumPartitions")
318318
})
319319

320-
#' numPartitions is the same as getNumPartitions
320+
#' Gets the number of partitions of an RDD, the same as getNumPartitions.
321+
#' But this function has been deprecated, please use getNumPartitions.
321322
#'
322323
#' @rdname getNumPartitions
323324
#' @aliases numPartitions,RDD-method
324325
#' @noRd
325326
setMethod("numPartitions",
326327
signature(x = "RDD"),
327328
function(x) {
329+
.Deprecated("getNumPartitions")
328330
getNumPartitions(x)
329331
})
330332

0 commit comments

Comments
 (0)