@@ -797,7 +797,7 @@ setMethod("first",
797797# ' @aliases distinct,RDD-method
798798setMethod ("distinct ",
799799 signature(x = " RDD" ),
800- function (x , numPartitions = SparkR :: numPartitions(x )) {
800+ function (x , numPartitions = SparkR ::: numPartitions(x )) {
801801 identical.mapped <- lapply(x , function (x ) { list (x , NULL ) })
802802 reduced <- reduceByKey(identical.mapped ,
803803 function (x , y ) { x },
@@ -993,7 +993,7 @@ setMethod("coalesce",
993993 signature(x = " RDD" , numPartitions = " numeric" ),
994994 function (x , numPartitions , shuffle = FALSE ) {
995995 numPartitions <- numToInt(numPartitions )
996- if (shuffle || numPartitions > SparkR :: numPartitions(x )) {
996+ if (shuffle || numPartitions > SparkR ::: numPartitions(x )) {
997997 func <- function (partIndex , part ) {
998998 set.seed(partIndex ) # partIndex as seed
999999 start <- as.integer(sample(numPartitions , 1 ) - 1 )
@@ -1078,7 +1078,7 @@ setMethod("saveAsTextFile",
10781078# ' @aliases sortBy,RDD,RDD-method
10791079setMethod ("sortBy ",
10801080 signature(x = " RDD" , func = " function" ),
1081- function (x , func , ascending = TRUE , numPartitions = SparkR :: numPartitions(x )) {
1081+ function (x , func , ascending = TRUE , numPartitions = SparkR ::: numPartitions(x )) {
10821082 values(sortByKey(keyBy(x , func ), ascending , numPartitions ))
10831083 })
10841084
@@ -1552,7 +1552,7 @@ setMethod("cartesian",
15521552# ' @aliases subtract,RDD
15531553setMethod ("subtract ",
15541554 signature(x = " RDD" , other = " RDD" ),
1555- function (x , other , numPartitions = SparkR :: numPartitions(x )) {
1555+ function (x , other , numPartitions = SparkR ::: numPartitions(x )) {
15561556 mapFunction <- function (e ) { list (e , NA ) }
15571557 rdd1 <- map(x , mapFunction )
15581558 rdd2 <- map(other , mapFunction )
@@ -1583,7 +1583,7 @@ setMethod("subtract",
15831583# ' @aliases intersection,RDD
15841584setMethod ("intersection ",
15851585 signature(x = " RDD" , other = " RDD" ),
1586- function (x , other , numPartitions = SparkR :: numPartitions(x )) {
1586+ function (x , other , numPartitions = SparkR ::: numPartitions(x )) {
15871587 rdd1 <- map(x , function (v ) { list (v , NA ) })
15881588 rdd2 <- map(other , function (v ) { list (v , NA ) })
15891589
0 commit comments