类 AbstractWindowDataFrame<T>

    • 字段详细资料

      • emptyWindow

        protected final Window<T> emptyWindow
      • window

        protected Window<T> window
    • 构造器详细资料

      • AbstractWindowDataFrame

        public AbstractWindowDataFrame()
    • 方法详细资料

      • dfsFindWindow

        protected void dfsFindWindow​(List<List<T>> result,
                                     List<T> windowList,
                                     List<java.util.function.Function<T,​?>> partitionList,
                                     int index)
      • windowFunctionForRowNumber

        protected List<FI2<T,​Integer>> windowFunctionForRowNumber​(Window<T> overParam)
      • windowFunctionForDenseRank

        protected List<FI2<T,​Integer>> windowFunctionForDenseRank​(Window<T> overParam)
      • windowFunctionForLag

        protected <F> List<FI2<T,​F>> windowFunctionForLag​(Window<T> overParam,
                                                                java.util.function.Function<T,​F> field,
                                                                int n)
        获取当前行的前N行的值
      • windowFunctionForLead

        protected <F> List<FI2<T,​F>> windowFunctionForLead​(Window<T> overParam,
                                                                 java.util.function.Function<T,​F> field,
                                                                 int n)
        获取当前行的后N行的值
      • windowFunctionForNthValue

        protected <F> List<FI2<T,​F>> windowFunctionForNthValue​(Window<T> overParam,
                                                                     java.util.function.Function<T,​F> field,
                                                                     int n)
        获取窗口内第N行的值
      • isInRange

        public boolean isInRange​(FI2<Integer,​Integer> round,
                                 int index)
      • isAllRow

        public boolean isAllRow​(Window<T> overParam)
      • windowFunctionForSum

        protected <F> List<FI2<T,​BigDecimal>> windowFunctionForSum​(Window<T> overParam,
                                                                         java.util.function.Function<T,​F> field)
      • slidingWindowSum

        public <F> List<FI2<T,​BigDecimal>> slidingWindowSum​(List<T> nums,
                                                                  Window<T> overParam,
                                                                  java.util.function.Function<T,​F> field)
      • getBigDecimalValue

        public <F> BigDecimal getBigDecimalValue​(T obj,
                                                 java.util.function.Function<T,​F> field)
      • windowFunctionForAvg

        protected <F> List<FI2<T,​BigDecimal>> windowFunctionForAvg​(Window<T> overParam,
                                                                         java.util.function.Function<T,​F> field)
      • slidingWindowAvg

        public <F> List<FI2<T,​BigDecimal>> slidingWindowAvg​(List<T> nums,
                                                                  Window<T> overParam,
                                                                  java.util.function.Function<T,​F> field)
      • slidingWindowForMaxValue

        public <F extends Comparable<? super F>> List<FI2<T,​F>> slidingWindowForMaxValue​(List<T> nums,
                                                                                               Window<T> overParam,
                                                                                               java.util.function.Function<T,​F> field)
      • slidingWindowForMinValue

        public <F extends Comparable<? super F>> List<FI2<T,​F>> slidingWindowForMinValue​(List<T> nums,
                                                                                               Window<T> overParam,
                                                                                               java.util.function.Function<T,​F> field)
      • windowFunctionForMaxValue

        protected <F extends Comparable<? super F>> List<FI2<T,​F>> windowFunctionForMaxValue​(Window<T> overParam,
                                                                                                   java.util.function.Function<T,​F> field)
      • windowFunctionForMinValue

        protected <F extends Comparable<? super F>> List<FI2<T,​F>> windowFunctionForMinValue​(Window<T> overParam,
                                                                                                   java.util.function.Function<T,​F> field)
      • windowFunctionForNtile

        protected List<FI2<T,​Integer>> windowFunctionForNtile​(Window<T> overParam,
                                                                    int n)