Window specifications are the syntactic clauses that can be passed to both
window definitions in WINDOW clauses, as well as to the
OVER clause of window functions. This makes window
specifications highly reusable across several queries.
Example:
WindowSpecification spec =
DSL.partitionBy(BOOK.AUTHOR_ID)
.orderBy(BOOK.ID)
.rowsBetweenUnboundedPreceding()
.andCurrentRow();
Instances can be created using DSL#partitionBy(GroupField.,
DSL#orderBy(OrderField., and overloads as well as rows / range /
groups related methods in DSL.
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable QOM. | |
| public @Nullable Integer | |
| public @Nullable Integer | |
| public @Nullable QOM. | |
| public @NotNull QOM. | |
| public @NotNull QOM. | |
| public @Nullable WindowDefinition | $windowDefinition()
Deprecated
as a consequence of
Experimental query object model accessor method, see also WindowDefinition being deprecated.
QOM.
|
| $exclude | back to summary |
|---|---|
| public @Nullable QOM. Experimental query object model accessor method, see also
| |
| $frameEnd | back to summary |
|---|---|
| public @Nullable Integer $frameEnd() Experimental query object model accessor method, see also
| |
| $frameStart | back to summary |
|---|---|
| public @Nullable Integer $frameStart() Experimental query object model accessor method, see also
| |
| $frameUnits | back to summary |
|---|---|
| public @Nullable QOM. Experimental query object model accessor method, see also
| |
| $orderBy | back to summary |
|---|---|
| public @NotNull QOM. Experimental query object model accessor method, see also
| |
| $partitionBy | back to summary |
|---|---|
| public @NotNull QOM. Experimental query object model accessor method, see also
| |
| $windowDefinition | back to summary |
|---|---|
| public @Nullable WindowDefinition $windowDefinition()
Deprecated as a consequence of Experimental query object model accessor method, see also
| |