Class OverClause
- java.lang.Object
-
- com.exasol.sql.expression.function.exasol.OverClause
-
public class OverClause extends Object
This represents anOVERclause of an analytic function in Exasol. See the documentation for details.
-
-
Constructor Summary
Constructors Constructor Description OverClause()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OrderByClausegetOrderByClause()Get the order by clause of thisOverClause.List<ValueExpression>getPartitionByColumns()Get the columns of the partition by clause of thisOverClause.WindowFrameClausegetWindowFrameClause()Get the window frame clause of thisOverClause.StringgetWindowName()Get the window name of thisOverClause.static OverClauseof(String windowName)Create a newOverClausewith the given window name.OverClauseorderBy(OrderByClause orderByClause)Set theOrderByClausefor thisOverClause.OverClausepartitionBy(ValueExpression... columns)Set the columns for thePARTITION BYclause of thisOverClause.OverClausewindowFrame(UnaryOperator<WindowFrameClause> configurator)Set and configure theWindowFrameClausefor thisOverClause.OverClausewindowName(String windowName)Set the window name for thisOverClause.
-
-
-
Method Detail
-
of
public static OverClause of(String windowName)
Create a newOverClausewith the given window name.- Parameters:
windowName- window name of the newOverClause- Returns:
- a new
OverClause
-
windowName
public OverClause windowName(String windowName)
Set the window name for thisOverClause.- Parameters:
windowName- name of the window.- Returns:
- this
OverClausefor fluent programming
-
orderBy
public OverClause orderBy(OrderByClause orderByClause)
Set theOrderByClausefor thisOverClause.- Parameters:
orderByClause-OrderByClausefor thisOverClause- Returns:
- this
OverClausefor fluent programming
-
partitionBy
public OverClause partitionBy(ValueExpression... columns)
Set the columns for thePARTITION BYclause of thisOverClause.- Parameters:
columns- columns for thePARTITION BYclause.- Returns:
- this
OverClausefor fluent programming
-
windowFrame
public OverClause windowFrame(UnaryOperator<WindowFrameClause> configurator)
Set and configure theWindowFrameClausefor thisOverClause. You configure the clause in the given lambda.- Parameters:
configurator- lambda configuring theWindowFrameClause.- Returns:
- this
OverClausefor fluent programming
-
getWindowName
public String getWindowName()
Get the window name of thisOverClause.- Returns:
- window name
-
getPartitionByColumns
public List<ValueExpression> getPartitionByColumns()
Get the columns of the partition by clause of thisOverClause.- Returns:
- partition by columns
-
getOrderByClause
public OrderByClause getOrderByClause()
Get the order by clause of thisOverClause.- Returns:
- the order by clause
-
getWindowFrameClause
public WindowFrameClause getWindowFrameClause()
Get the window frame clause of thisOverClause.- Returns:
- the window frame clause
-
-