Skip to contents

Return the number of partitions

Usage

# S4 method for class 'SparkDataFrame'
getNumPartitions(x)

Arguments

x

A SparkDataFrame

Note

getNumPartitions since 2.1.1

Examples

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