Interface WindowDefinition<T,U extends Comparable<? super U>>
-
- Type Parameters:
T
- the type ofQueryable
elementU
- 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 Object
getId()
Get the id of window definitionstatic <T,U extends Comparable<? super U>>
WindowDefinition<T,U>of()
Factory method to createWindowDefinition
instancestatic <T,U extends Comparable<? super U>>
WindowDefinition<T,U>of(Function<? super T,?> partitionBy)
Factory method to createWindowDefinition
instancestatic <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 createWindowDefinition
instancestatic <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 createWindowDefinition
instancestatic <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 createWindowDefinition
instancestatic <T,U extends Comparable<? super U>>
WindowDefinition<T,U>of(List<Queryable.Order<? super T,? extends U>> orderBy)
Factory method to createWindowDefinition
instancestatic <T,U extends Comparable<? super U>>
WindowDefinition<T,U>of(List<Queryable.Order<? super T,? extends U>> orderBy, RowBound rows)
Factory method to createWindowDefinition
instancestatic <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 createWindowDefinition
instancestatic <T,U extends Comparable<? super U>>
WindowDefinition<T,U>of(Queryable.Order<? super T,? extends U> orderBy)
Factory method to createWindowDefinition
instancedefault List<Queryable.Order<? super T,? extends U>>
orderBy()
Define order, similar to SQL'sorder by
of window definitiondefault Function<? super T,?>
partitionBy()
Define partition, similar to SQL'spartition by
of window definitiondefault ValueBound<? extends U>
range()
Define the window bounds by values, similar to MySQL'srange between 1.0 preceding and 1.0 following
of window definitiondefault RowBound
rows()
Define the window bounds by offsets, similar to MySQL'srows between 1 preceding and 1 following
of 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 createWindowDefinition
instance- Type Parameters:
T
- the type ofQueryable
elementU
- the type of field to sort- Returns:
- the
WindowDefinition
instance - Since:
- 4.0.0
-
of
static <T,U extends Comparable<? super U>> WindowDefinition<T,U> of(Function<? super T,?> partitionBy)
Factory method to createWindowDefinition
instance- Type Parameters:
T
- the type ofQueryable
elementU
- the type of field to sort- Parameters:
partitionBy
- partition definition- Returns:
- the
WindowDefinition
instance - 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 createWindowDefinition
instance- Type Parameters:
T
- the type ofQueryable
elementU
- the type of field to sort- Parameters:
orderBy
- order definition- Returns:
- the
WindowDefinition
instance - 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 createWindowDefinition
instance- Type Parameters:
T
- the type ofQueryable
elementU
- the type of field to sort- Parameters:
orderBy
- order definition- Returns:
- the
WindowDefinition
instance - 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 createWindowDefinition
instance- Type Parameters:
T
- the type ofQueryable
elementU
- the type of field to sort- Parameters:
partitionBy
- partition definitionorderBy
- order definition- Returns:
- the
WindowDefinition
instance - 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 createWindowDefinition
instance- Type Parameters:
T
- the type ofQueryable
elementU
- the type of field to sort- Parameters:
partitionBy
- partition definitionorderBy
- order definitionrows
- the window bounds- Returns:
- the
WindowDefinition
instance - 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 createWindowDefinition
instance- Type Parameters:
T
- the type ofQueryable
elementU
- the type of field to sort- Parameters:
orderBy
- order definitionrows
- the window bounds- Returns:
- the
WindowDefinition
instance - 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 createWindowDefinition
instance- Type Parameters:
T
- the type ofQueryable
elementU
- the type of field to sort- Parameters:
partitionBy
- partition definitionorderBy
- order definitionrange
- the window bounds- Returns:
- the
WindowDefinition
instance - 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 createWindowDefinition
instance- Type Parameters:
T
- the type ofQueryable
elementU
- the type of field to sort- Parameters:
orderBy
- order definitionrange
- the window bounds- Returns:
- the
WindowDefinition
instance - Since:
- 4.0.0
-
partitionBy
default Function<? super T,?> partitionBy()
Define partition, similar to SQL'spartition by
of window definition- Returns:
- partition definition
-
orderBy
default List<Queryable.Order<? super T,? extends U>> orderBy()
Define order, similar to SQL'sorder by
of 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 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'srange 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
-
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
WindowDefinition
instance - Since:
- 4.0.0
-
-