Module org.jooq
Package org.jooq

Interface WindowSpecification

All Superinterfaces:
QueryPart, Serializable
All Known Subinterfaces:
WindowDefinition, WindowSpecificationExcludeStep, WindowSpecificationFinalStep, WindowSpecificationOrderByStep, WindowSpecificationPartitionByStep, WindowSpecificationRowsStep

public interface WindowSpecification extends QueryPart
A window specification.

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.

Author:
Lukas Eder
  • Method Details

    • $windowDefinition

      @Experimental @Nullable @Nullable WindowDefinition $windowDefinition()
      Experimental query object model accessor method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.
    • $partitionBy

      @Experimental @NotNull @NotNull QOM.UnmodifiableList<? extends GroupField> $partitionBy()
      Experimental query object model accessor method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.
    • $partitionBy

      @Experimental @CheckReturnValue @NotNull @NotNull WindowSpecification $partitionBy(Collection<? extends GroupField> partitionBy)
      Experimental query object model mutator method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.
    • $orderBy

      @Experimental @NotNull @NotNull QOM.UnmodifiableList<? extends SortField<?>> $orderBy()
      Experimental query object model accessor method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.
    • $orderBy

      @Experimental @CheckReturnValue @NotNull @NotNull WindowSpecification $orderBy(Collection<? extends SortField<?>> orderBy)
      Experimental query object model mutator method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.
    • $frameUnits

      @Experimental @Nullable @Nullable QOM.FrameUnits $frameUnits()
      Experimental query object model accessor method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.
    • $frameUnits

      @Experimental @CheckReturnValue @NotNull @NotNull WindowSpecification $frameUnits(QOM.FrameUnits frameUnits)
      Experimental query object model mutator method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.
    • $frameStart

      @Experimental @Nullable @Nullable Integer $frameStart()
      Experimental query object model accessor method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.
    • $frameStart

      @Experimental @CheckReturnValue @NotNull @NotNull WindowSpecification $frameStart(Integer frameStart)
      Experimental query object model mutator method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.
    • $frameEnd

      @Experimental @Nullable @Nullable Integer $frameEnd()
      Experimental query object model accessor method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.
    • $frameEnd

      @Experimental @CheckReturnValue @NotNull @NotNull WindowSpecification $frameEnd(Integer frameEnd)
      Experimental query object model mutator method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.
    • $exclude

      @Experimental @Nullable @Nullable QOM.FrameExclude $exclude()
      Experimental query object model accessor method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.
    • $exclude

      @Experimental @CheckReturnValue @NotNull @NotNull WindowSpecification $exclude(QOM.FrameExclude exclude)
      Experimental query object model mutator method, see also QOM. Subject to change in future jOOQ versions, use at your own risk.