Interface WindowDefinition<T,U extends Comparable<? super U>> 
- Type Parameters:
- T- the type of- Windowelement
- 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 SummaryModifier and TypeMethodDescriptiongetId()Get the id of window definitionstatic <T,U extends Comparable<? super U>> 
 WindowDefinition<T,U> of()Factory method to createWindowDefinitioninstancestatic <T,U extends Comparable<? super U>> 
 WindowDefinition<T,U> Factory method to createWindowDefinitioninstancestatic <T,U extends Comparable<? super U>> 
 WindowDefinition<T,U> of(Function<? super T, ?> partitionBy, List<Queryable.Order<? super T, ? extends U>> orderBy) Factory method to createWindowDefinitioninstancestatic <T,U extends Comparable<? super U>> 
 WindowDefinition<T,U> of(Function<? super T, ?> partitionBy, List<Queryable.Order<? super T, ? extends U>> orderBy, RowBound rows) Factory method to createWindowDefinitioninstancestatic <T,U extends Comparable<? super U>> 
 WindowDefinition<T,U> of(Function<? super T, ?> partitionBy, List<Queryable.Order<? super T, ? extends U>> orderBy, ValueBound<? extends U> range) Factory method to createWindowDefinitioninstancestatic <T,U extends Comparable<? super U>> 
 WindowDefinition<T,U> of(List<Queryable.Order<? super T, ? extends U>> orderBy) Factory method to createWindowDefinitioninstancestatic <T,U extends Comparable<? super U>> 
 WindowDefinition<T,U> of(List<Queryable.Order<? super T, ? extends U>> orderBy, RowBound rows) Factory method to createWindowDefinitioninstancestatic <T,U extends Comparable<? super U>> 
 WindowDefinition<T,U> of(List<Queryable.Order<? super T, ? extends U>> orderBy, ValueBound<? extends U> range) Factory method to createWindowDefinitioninstancestatic <T,U extends Comparable<? super U>> 
 WindowDefinition<T,U> of(Queryable.Order<? super T, ? extends U> orderBy) Factory method to createWindowDefinitioninstancedefault List<Queryable.Order<? super T,? extends U>> orderBy()Define order, similar to SQL'sorder byof window definitionDefine partition, similar to SQL'spartition byof window definitiondefault ValueBound<? extends U>range()Define the window bounds by values, similar to MySQL'srange between 1.0 preceding and 1.0 followingof window definitiondefault RowBoundrows()Define the window bounds by offsets, similar to MySQL'srows between 1 preceding and 1 followingof window definitionSet the id of window definition
- 
Method Details- 
ofFactory method to createWindowDefinitioninstance- Type Parameters:
- T- the type of- Queryableelement
- U- the type of field to sort
- Returns:
- the WindowDefinitioninstance
- Since:
- 4.0.0
 
- 
ofstatic <T,U extends Comparable<? super U>> WindowDefinition<T,U> of(Function<? super T, ?> partitionBy) Factory method to createWindowDefinitioninstance- Type Parameters:
- T- the type of- Queryableelement
- U- the type of field to sort
- Parameters:
- partitionBy- partition definition
- Returns:
- the WindowDefinitioninstance
- Since:
- 4.0.0
 
- 
ofstatic <T,U extends Comparable<? super U>> WindowDefinition<T,U> of(Queryable.Order<? super T, ? extends U> orderBy) Factory method to createWindowDefinitioninstance- Type Parameters:
- T- the type of- Queryableelement
- U- the type of field to sort
- Parameters:
- orderBy- order definition
- Returns:
- the WindowDefinitioninstance
- Since:
- 4.0.0
 
- 
ofstatic <T,U extends Comparable<? super U>> WindowDefinition<T,U> of(List<Queryable.Order<? super T, ? extends U>> orderBy) Factory method to createWindowDefinitioninstance- Type Parameters:
- T- the type of- Queryableelement
- U- the type of field to sort
- Parameters:
- orderBy- order definition
- Returns:
- the WindowDefinitioninstance
- Since:
- 4.0.0
 
- 
ofstatic <T,U extends Comparable<? super U>> WindowDefinition<T,U> of(Function<? super T, ?> partitionBy, List<Queryable.Order<? super T, ? extends U>> orderBy) Factory method to createWindowDefinitioninstance- Type Parameters:
- T- the type of- Queryableelement
- U- the type of field to sort
- Parameters:
- partitionBy- partition definition
- orderBy- order definition
- Returns:
- the WindowDefinitioninstance
- Since:
- 4.0.0
 
- 
ofstatic <T,U extends Comparable<? super U>> WindowDefinition<T,U> of(Function<? super T, ?> partitionBy, List<Queryable.Order<? super T, ? extends U>> orderBy, RowBound rows) Factory method to createWindowDefinitioninstance- Type Parameters:
- T- the type of- Queryableelement
- U- the type of field to sort
- Parameters:
- partitionBy- partition definition
- orderBy- order definition
- rows- the window bounds
- Returns:
- the WindowDefinitioninstance
- Since:
- 4.0.0
 
- 
ofstatic <T,U extends Comparable<? super U>> WindowDefinition<T,U> of(List<Queryable.Order<? super T, ? extends U>> orderBy, RowBound rows) Factory method to createWindowDefinitioninstance- Type Parameters:
- T- the type of- Queryableelement
- U- the type of field to sort
- Parameters:
- orderBy- order definition
- rows- the window bounds
- Returns:
- the WindowDefinitioninstance
- Since:
- 4.0.0
 
- 
ofstatic <T,U extends Comparable<? super U>> WindowDefinition<T,U> of(Function<? super T, ?> partitionBy, List<Queryable.Order<? super T, ? extends U>> orderBy, ValueBound<? extends U> range) Factory method to createWindowDefinitioninstance- Type Parameters:
- T- the type of- Queryableelement
- U- the type of field to sort
- Parameters:
- partitionBy- partition definition
- orderBy- order definition
- range- the window bounds
- Returns:
- the WindowDefinitioninstance
- Since:
- 4.0.0
 
- 
ofstatic <T,U extends Comparable<? super U>> WindowDefinition<T,U> of(List<Queryable.Order<? super T, ? extends U>> orderBy, ValueBound<? extends U> range) Factory method to createWindowDefinitioninstance- Type Parameters:
- T- the type of- Queryableelement
- U- the type of field to sort
- Parameters:
- orderBy- order definition
- range- the window bounds
- Returns:
- the WindowDefinitioninstance
- Since:
- 4.0.0
 
- 
partitionByDefine partition, similar to SQL'spartition byof window definition- Returns:
- partition definition
 
- 
orderByDefine order, similar to SQL'sorder byof window definition- Returns:
- order definition
- Since:
- 4.0.0
 
- 
rowsDefine the window bounds by offsets, similar to MySQL'srows between 1 preceding and 1 followingof window definition- Returns:
- rows definition
- Since:
- 4.0.0
 
- 
rangeDefine the window bounds by values, similar to MySQL'srange between 1.0 preceding and 1.0 followingof window definition- Returns:
- range definition
- Since:
- 4.0.0
 
- 
getIdObject getId()Get the id of window definition- Returns:
- the id of window definition
- Since:
- 4.0.0
 
- 
setIdSet the id of window definition- Parameters:
- id- the id of window definition
- Returns:
- self, i.e. current WindowDefinitioninstance
- Since:
- 4.0.0
 
 
-