Class WindowRows<Def extends WindowDefinition<Def,?>>
java.lang.Object
com.blazebit.persistence.querydsl.WindowRows<Def>
- Type Parameters:
Def
- Builder type
public class WindowRows<Def extends WindowDefinition<Def,?>> extends Object
WindowRows
provides the building of the rows/range part of the window function expression.
Analog to WindowRows
.- Since:
- 1.5.0
- Author:
- Jan-Willem Gmelig Meyling
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
WindowRows.Between
An interface for building a window frame clause for analytics functions.class
WindowRows.BetweenAnd
Intermediate step -
Constructor Summary
Constructors Constructor Description WindowRows(Def windowFunction, WindowFrameMode frameMode)
-
Method Summary
Modifier and Type Method Description WindowRows.Between
between()
Start a frame between builder.Def
currentRow()
Uses CURRENT ROW as lower bound for the frame and starts a frame between builder for the upper bound.Def
preceding(int i)
Uses X PRECEDING as lower bound and continues to the frame exclusion builder.Def
preceding(com.querydsl.core.types.Expression<Integer> expr)
Uses X PRECEDING as lower bound and continues to the frame exclusion builder.Def
unboundedPreceding()
Uses UNBOUNDED PRECEDING as lower bound for the frame and starts a frame between builder for the upper bound.
-
Constructor Details
-
Method Details
-
between
Start a frame between builder.- Returns:
- The frame between builder
-
unboundedPreceding
Uses UNBOUNDED PRECEDING as lower bound for the frame and starts a frame between builder for the upper bound.- Returns:
- The frame builder
-
currentRow
Uses CURRENT ROW as lower bound for the frame and starts a frame between builder for the upper bound.- Returns:
- The frame builder
-
preceding
Uses X PRECEDING as lower bound and continues to the frame exclusion builder.- Parameters:
expr
- The expression for the frame bound- Returns:
- The frame exclusion builder
-
preceding
Uses X PRECEDING as lower bound and continues to the frame exclusion builder.- Parameters:
i
- The number of preceding rows- Returns:
- The frame exclusion builder
-