Interface WindowDefinition<T,​U extends Comparable<? super U>>

  • Type Parameters:
    T - the type of Queryable element
    U - the type of field to sort

    public interface WindowDefinition<T,​U extends Comparable<? super U>>
    Represents window definition, which will define the result set to construct the window
    Since:
    4.0.0
    • Method Detail

      • partitionBy

        default Function<? super T,​?> partitionBy()
        Define partition, similar to SQL's partition by of window definition
        Returns:
        partition definition
      • orderBy

        default List<Queryable.Order<? super T,​? extends U>> orderBy()
        Define order, similar to SQL's order by of window definition
        Returns:
        order definition
        Since:
        4.0.0
      • rows

        default RowBound rows()
        Define the window bounds by offsets, similar to MySQL's rows between 1 preceding and 1 following of window definition
        Returns:
        rows definition
        Since:
        4.0.0
      • range

        default ValueBound<? extends U> range()
        Define the window bounds by values, similar to MySQL's range between 1.0 preceding and 1.0 following of window definition
        Returns:
        range definition
        Since:
        4.0.0
      • getId

        Object getId()
        Get the id of window definition
        Returns:
        the id of window definition
        Since:
        4.0.0