public final class Window extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
currentRow()
Returns a value representing current row.
|
static WindowSpec |
orderBy(Column... cols)
Returns WindowSpec object with order by clause.
|
static WindowSpec |
partitionBy(Column... cols)
Returns WindowSpec object with partition by clause.
|
static WindowSpec |
rangeBetween(long start,
long end)
Returns WindowSpec object with range frame clause.
|
static WindowSpec |
rowsBetween(long start,
long end)
Returns WindowSpec object with row frame clause.
|
static long |
unboundedFollowing()
Returns a value representing unbounded following.
|
static long |
unboundedPreceding()
Returns a value representing unbounded preceding.
|
public static WindowSpec partitionBy(Column... cols)
cols - The list of columnpublic static WindowSpec orderBy(Column... cols)
cols - The list of columnpublic static long unboundedPreceding()
public static long unboundedFollowing()
public static long currentRow()
public static WindowSpec rowsBetween(long start, long end)
start - The start positionend - The end positionpublic static WindowSpec rangeBetween(long start, long end)
start - The start positionend - The end position© 2023 Snowflake Inc. All Rights Reserved