numPartitions {SparkR} | R Documentation |
Gets the number of partitions of an RDD
numPartitions(rdd) ## S4 method for signature 'RDD' numPartitions(rdd)
rdd |
A RDD. |
the number of partitions of rdd as an integer.
## Not run:
##D sc <- sparkR.init()
##D rdd <- parallelize(sc, 1:10, 2L)
##D numParititions(rdd) # 2L
## End(Not run)