SparkR (version 2.1.2)

partitionBy: partitionBy

Description

Defines the partitioning columns in a WindowSpec.

Usage

partitionBy(x, ...)

# S4 method for WindowSpec partitionBy(x, col, ...)

Arguments

x

a WindowSpec.

...

additional column(s) to partition on.

col

a column to partition on (desribed by the name or Column).

Value

A WindowSpec.

See Also

Other windowspec_method: orderBy, rangeBetween, rowsBetween

Examples

Run this code
# NOT RUN {
  partitionBy(ws, "col1", "col2")
  partitionBy(ws, df$col1, df$col2)
# }

Run the code above in your browser using DataLab