类 AfterRange

  • 所有已实现的接口:
    WindowRange

    public class AfterRange
    extends Object
    implements WindowRange
    The last n rows of the current row
    作者:
    caizhihao
    • 字段详细资料

      • n

        protected int n
    • 构造器详细资料

      • AfterRange

        public AfterRange()
      • AfterRange

        public AfterRange​(int n)
    • 方法详细资料

      • check

        public void check()
        从接口复制的说明: WindowRange
        Verify that the parameters are valid
        指定者:
        check 在接口中 WindowRange
      • getStartIndex

        public <T> Integer getStartIndex​(Integer currentRowIndex,
                                         List<T> windowList)
        从接口复制的说明: WindowRange
        get the window sliding start boundary
        指定者:
        getStartIndex 在接口中 WindowRange
        参数:
        currentRowIndex - the current row index
        windowList - the current window data
      • getEndIndex

        public <T> Integer getEndIndex​(Integer currentRowIndex,
                                       List<T> windowList)
        从接口复制的说明: WindowRange
        get the window sliding end boundary
        指定者:
        getEndIndex 在接口中 WindowRange
        参数:
        currentRowIndex - the current row index
        windowList - the current window data