public class WindowSpec extends Object
| Modifier and Type | Method and Description |
|---|---|
WindowSpec |
orderBy(Column... cols)
Returns a new WindowSpec object with the new order by clause.
|
WindowSpec |
partitionBy(Column... cols)
Returns a new WindowSpec object with the new partition by clause.
|
WindowSpec |
rangeBetween(long start,
long end)
Returns a new WindowSpec object with the new range frame clause.
|
WindowSpec |
rowsBetween(long start,
long end)
Returns a new WindowSpec object with the new row frame clause.
|
public WindowSpec partitionBy(Column... cols)
cols - A list of input columnpublic WindowSpec orderBy(Column... cols)
cols - A list of input columnpublic WindowSpec rowsBetween(long start, long end)
start - The starting indexend - The ending indexpublic WindowSpec rangeBetween(long start, long end)
start - The starting indexend - The ending index© 2023 Snowflake Inc. All Rights Reserved