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 classWindowRows.BetweenAn interface for building a window frame clause for analytics functions.classWindowRows.BetweenAndIntermediate step -
Constructor Summary
Constructors Constructor Description WindowRows(Def windowFunction, WindowFrameMode frameMode) -
Method Summary
Modifier and Type Method Description WindowRows.Betweenbetween()Start a frame between builder.DefcurrentRow()Uses CURRENT ROW as lower bound for the frame and starts a frame between builder for the upper bound.Defpreceding(int i)Uses X PRECEDING as lower bound and continues to the frame exclusion builder.Defpreceding(com.querydsl.core.types.Expression<Integer> expr)Uses X PRECEDING as lower bound and continues to the frame exclusion builder.DefunboundedPreceding()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
-