接口 WindowRange
-
- 所有已知实现类:
AfterRange,BeforeRange,CurrentRowRange,EndRowRange,StartRowRange
public interface WindowRangeWindow Range Can be generated throughRangeconstruction the window range is a sliding window, so we can specify some boundaries and sliding situations of the window- 作者:
- caizhihao
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default voidcheck()Verify that the parameters are validdefault booleaneq(Object obj)<T> IntegergetEndIndex(Integer currentRowIndex, List<T> windowList)get the window sliding end boundary<T> IntegergetStartIndex(Integer currentRowIndex, List<T> windowList)get the window sliding start boundarydefault booleanisFixedEndIndex()is the end boundary fixeddefault booleanisFixedStartIndex()is the start boundary fixed
-
-
-
方法详细资料
-
check
default void check()
Verify that the parameters are valid
-
isFixedStartIndex
default boolean isFixedStartIndex()
is the start boundary fixed
-
isFixedEndIndex
default boolean isFixedEndIndex()
is the end boundary fixed
-
getStartIndex
<T> Integer getStartIndex(Integer currentRowIndex, List<T> windowList)
get the window sliding start boundary- 参数:
currentRowIndex- the current row indexwindowList- the current window data
-
getEndIndex
<T> Integer getEndIndex(Integer currentRowIndex, List<T> windowList)
get the window sliding end boundary- 参数:
currentRowIndex- the current row indexwindowList- the current window data
-
eq
default boolean eq(Object obj)
-
-