SizeBasedWindowFunction — Declarative Window Aggregate Functions with Window Size¶
SizeBasedWindowFunction
is the <
[[contract]] [source, scala]
package org.apache.spark.sql.catalyst.expressions
trait SizeBasedWindowFunction extends AggregateWindowFunction { // No required properties (vals and methods) that have no implementation }
.SizeBasedWindowFunction Contract [cols="1m,2",options="header",width="100%"] |=== | Property | Description
| n | [[n]] Size of the current window as a <++window__partition__size++
name, IntegerType data type and not nullable |===
[[implementations]] .SizeBasedWindowFunctions (Direct Implementations) [cols="1,2",options="header",width="100%"] |=== | SizeBasedWindowFunction | Description
| <
| NTile | [[NTile]]
| PercentRank | [[PercentRank]] |===