org.apache.spark.sql.expressions.WindowSpec
See theWindowSpec companion object
class WindowSpec
A window specification that defines the partitioning, ordering, and frame boundaries of an analytic / windowed computation. Build with Window.
import org.apache.spark.sql.expressions.Window
import org.apache.spark.sql.functions._
val w = Window.partitionBy("dept").orderBy(col("salary").desc)
df.select(col("*"), rank().over(w).as("r"))
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article