Interface WindowDefinition<T,U extends Comparable<? super U>>
-
- Type Parameters:
T- the type ofQueryableelementU- 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 Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ObjectgetId()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>of(Function<? super T,?> partitionBy)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 definitiondefault Function<? super T,?>partitionBy()Define 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 definitionWindowDefinition<T,U>setId(Object id)Set the id of window definition
-
-
-
Method Detail
-
of
static <T,U extends Comparable<? super U>> WindowDefinition<T,U> of()
Factory method to createWindowDefinitioninstance- Type Parameters:
T- the type ofQueryableelementU- the type of field to sort- Returns:
- the
WindowDefinitioninstance - Since:
- 4.0.0
-
of
static <T,U extends Comparable<? super U>> WindowDefinition<T,U> of(Function<? super T,?> partitionBy)
Factory method to createWindowDefinitioninstance- Type Parameters:
T- the type ofQueryableelementU- the type of field to sort- Parameters:
partitionBy- partition definition- Returns:
- the
WindowDefinitioninstance - Since:
- 4.0.0
-
of
static <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 ofQueryableelementU- the type of field to sort- Parameters:
orderBy- order definition- Returns:
- the
WindowDefinitioninstance - Since:
- 4.0.0
-
of
static <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 ofQueryableelementU- the type of field to sort- Parameters:
orderBy- order definition- Returns:
- the
WindowDefinitioninstance - Since:
- 4.0.0
-
of
static <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 ofQueryableelementU- the type of field to sort- Parameters:
partitionBy- partition definitionorderBy- order definition- Returns:
- the
WindowDefinitioninstance - Since:
- 4.0.0
-
of
static <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 ofQueryableelementU- the type of field to sort- Parameters:
partitionBy- partition definitionorderBy- order definitionrows- the window bounds- Returns:
- the
WindowDefinitioninstance - Since:
- 4.0.0
-
of
static <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 ofQueryableelementU- the type of field to sort- Parameters:
orderBy- order definitionrows- the window bounds- Returns:
- the
WindowDefinitioninstance - Since:
- 4.0.0
-
of
static <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 ofQueryableelementU- the type of field to sort- Parameters:
partitionBy- partition definitionorderBy- order definitionrange- the window bounds- Returns:
- the
WindowDefinitioninstance - Since:
- 4.0.0
-
of
static <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 ofQueryableelementU- the type of field to sort- Parameters:
orderBy- order definitionrange- the window bounds- Returns:
- the
WindowDefinitioninstance - Since:
- 4.0.0
-
partitionBy
default Function<? super T,?> partitionBy()
Define partition, similar to SQL'spartition byof window definition- Returns:
- partition definition
-
orderBy
default List<Queryable.Order<? super T,? extends U>> orderBy()
Define order, similar to SQL'sorder byof window definition- Returns:
- order definition
- Since:
- 4.0.0
-
rows
default RowBound rows()
Define the window bounds by offsets, similar to MySQL'srows between 1 preceding and 1 followingof window definition- Returns:
- rows definition
- Since:
- 4.0.0
-
range
default ValueBound<? extends U> range()
Define 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
-
getId
Object getId()
Get the id of window definition- Returns:
- the id of window definition
- Since:
- 4.0.0
-
setId
WindowDefinition<T,U> setId(Object id)
Set the id of window definition- Parameters:
id- the id of window definition- Returns:
- self, i.e. current
WindowDefinitioninstance - Since:
- 4.0.0
-
-