Package com.snowflake.snowpark_java
Class Window
- java.lang.Object
- 
- com.snowflake.snowpark_java.Window
 
- 
 public final class Window extends Object Contains functions to form WindowSpec.- Since:
- 0.9.0
 
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static longcurrentRow()Returns a value representing current row.static WindowSpecorderBy(Column... cols)Returns WindowSpec object with order by clause.static WindowSpecpartitionBy(Column... cols)Returns WindowSpec object with partition by clause.static WindowSpecrangeBetween(long start, long end)Returns WindowSpec object with range frame clause.static WindowSpecrowsBetween(long start, long end)Returns WindowSpec object with row frame clause.static longunboundedFollowing()Returns a value representing unbounded following.static longunboundedPreceding()Returns a value representing unbounded preceding.
 
- 
- 
- 
Method Detail- 
partitionBypublic static WindowSpec partitionBy(Column... cols) Returns WindowSpec object with partition by clause.- Parameters:
- cols- The list of column
- Returns:
- The result WindowSpec
- Since:
- 0.9.0
 
 - 
orderBypublic static WindowSpec orderBy(Column... cols) Returns WindowSpec object with order by clause.- Parameters:
- cols- The list of column
- Returns:
- The result WindowSpec
- Since:
- 0.9.0
 
 - 
unboundedPrecedingpublic static long unboundedPreceding() Returns a value representing unbounded preceding.- Returns:
- A long value
- Since:
- 0.9.0
 
 - 
unboundedFollowingpublic static long unboundedFollowing() Returns a value representing unbounded following.- Returns:
- A long value
- Since:
- 0.9.0
 
 - 
currentRowpublic static long currentRow() Returns a value representing current row.- Returns:
- A long value
- Since:
- 0.9.0
 
 - 
rowsBetweenpublic static WindowSpec rowsBetween(long start, long end) Returns WindowSpec object with row frame clause.- Parameters:
- start- The start position
- end- The end position
- Returns:
- The result WindowSpec
- Since:
- 0.9.0
 
 - 
rangeBetweenpublic static WindowSpec rangeBetween(long start, long end) Returns WindowSpec object with range frame clause.- Parameters:
- start- The start position
- end- The end position
- Returns:
- The result WindowSpec
- Since:
- 0.9.0
 
 
- 
 
-