Skip to contents

Return the number of partitions

Usage

# S4 method for SparkDataFrame
getNumPartitions(x)

Arguments

x

A SparkDataFrame

Note

getNumPartitions since 2.1.1

Examples

if (FALSE) {
sparkR.session()
df <- createDataFrame(cars, numPartitions = 2)
getNumPartitions(df)
}