Class WindowFrameClause
- java.lang.Object
-
- com.exasol.sql.expression.function.exasol.WindowFrameClause
-
public class WindowFrameClause extends Object
This represents a window frame clause of an analytic function in Exasol. See the documentation for details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowFrameClause.UnitTypeRepresents a unit type.static classWindowFrameClause.WindowFrameExclusionTypeRepresents the type of a window frame exclusion.static classWindowFrameClause.WindowFrameTypeThe type of a window frame clausestatic classWindowFrameClause.WindowFrameUnitClauseRepresents a window frame unit.
-
Method Summary
-
-
-
Method Detail
-
type
public WindowFrameClause type(WindowFrameClause.WindowFrameType type)
Set the type of thisWindowFrameClause.- Parameters:
type- type of thisWindowFrameClause- Returns:
- this
WindowFrameClausefor fluent programming
-
unit
public WindowFrameClause unit(WindowFrameClause.UnitType unitType)
Set the unit type of thisWindowFrameClause.- Parameters:
unitType- unit type of thisWindowFrameClause- Returns:
- this
WindowFrameClausefor fluent programming
-
unit
public WindowFrameClause unit(ValueExpression expression, WindowFrameClause.UnitType unitType)
Set the unit type of thisWindowFrameClause.- Parameters:
expression- expression for the unit. Only required for unit typesWindowFrameClause.UnitType.PRECEDINGandWindowFrameClause.UnitType.FOLLOWINGunitType- unit type of thisWindowFrameClause- Returns:
- this
WindowFrameClausefor fluent programming
-
unitBetween
public WindowFrameClause unitBetween(WindowFrameClause.UnitType unitType1, WindowFrameClause.UnitType unitType2)
Set the unit type of thisWindowFrameClausetoBETWEEN ... AND ....- Parameters:
unitType1-BETWEENunitunitType2-ANDunit- Returns:
- this
WindowFrameClausefor fluent programming
-
unitBetween
public WindowFrameClause unitBetween(ValueExpression expression1, WindowFrameClause.UnitType unitType1, ValueExpression expression2, WindowFrameClause.UnitType unitType2)
Set the unit type of thisWindowFrameClausetoBETWEEN ... AND ....- Parameters:
unitType1-BETWEENunitexpression1-BETWEENexpression. Only required for unit typesWindowFrameClause.UnitType.PRECEDINGandWindowFrameClause.UnitType.FOLLOWINGunitType2-ANDunitexpression2-ANDexpression. Only required for unit typesWindowFrameClause.UnitType.PRECEDINGandWindowFrameClause.UnitType.FOLLOWING- Returns:
- this
WindowFrameClausefor fluent programming
-
exclude
public WindowFrameClause exclude(WindowFrameClause.WindowFrameExclusionType exclusion)
Set the exclusion type of thisWindowFrameClause.- Parameters:
exclusion- exclusion type.- Returns:
- this
WindowFrameClausefor fluent programming
-
getType
public WindowFrameClause.WindowFrameType getType()
Get the window frame type.- Returns:
- window frame type.
-
getUnit1
public WindowFrameClause.WindowFrameUnitClause getUnit1()
Get theBETWEENunit.- Returns:
BETWEENunit
-
getUnit2
public WindowFrameClause.WindowFrameUnitClause getUnit2()
Get theANDunit.- Returns:
ANDunit
-
getExclusion
public WindowFrameClause.WindowFrameExclusionType getExclusion()
Get the exclusion type.- Returns:
- exclusion type
-
-