类 WindowBuilder<T>
- java.lang.Object
-
- io.github.burukeyou.dataframe.iframe.window.WindowBuilder<T>
-
-
构造器概要
构造器 构造器 说明 WindowBuilder()WindowBuilder(WindowRange startRound, WindowRange endRound)WindowBuilder(Sorter<T> comparator)WindowBuilder(List<java.util.function.Function<T,?>> groupBy)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Comparator<T>getComparator()get window comparatorWindowRangegetEndRange()get window end rangeWindowRangegetStartRange()get window start rangevoidinitDefault()List<java.util.function.Function<T,?>>partitions()get partitions infoWindow<T>roundAllRow()Specify window range this range is window all rowWindow<T>roundBefore2CurrentRow(int n)Specify window range this range is form the first n lines of the current row to the current rowWindow<T>roundBeforeAfter(int before, int after)Specify window range this range is from before n row of current row to after n row of current rowWindow<T>roundBetween(WindowRange start, WindowRange end)Specify window rangeWindow<T>roundCurrentRow2After(int n)Specify window range this range is form the current row to the last n row of the current rowWindow<T>roundCurrentRow2EndRow()Specify window range this range is form the current row to the end rowWindow<T>roundStartRow2CurrentRow()Specify window range this range is form the start row to the current rowWindow<T>sort(Comparator<T> comparator)sort window by Comparator<U extends Comparable<? super U>>
Window<T>sortAsc(java.util.function.Function<T,U> sortField)Sort windows in ascending order according to specified fields<U extends Comparable<? super U>>
Window<T>sortDesc(java.util.function.Function<T,U> sortField)Sort windows in descending order according to specified fields
-
-
-
构造器详细资料
-
WindowBuilder
public WindowBuilder()
-
WindowBuilder
public WindowBuilder(WindowRange startRound, WindowRange endRound)
-
-
方法详细资料
-
initDefault
public void initDefault()
-
getComparator
public Comparator<T> getComparator()
从接口复制的说明:Windowget window comparator- 指定者:
getComparator在接口中Window<T>
-
getStartRange
public WindowRange getStartRange()
从接口复制的说明:Windowget window start range- 指定者:
getStartRange在接口中Window<T>
-
getEndRange
public WindowRange getEndRange()
从接口复制的说明:Windowget window end range- 指定者:
getEndRange在接口中Window<T>
-
partitions
public List<java.util.function.Function<T,?>> partitions()
从接口复制的说明:Windowget partitions info- 指定者:
partitions在接口中Window<T>
-
sortAsc
public <U extends Comparable<? super U>> Window<T> sortAsc(java.util.function.Function<T,U> sortField)
从接口复制的说明:WindowSort windows in ascending order according to specified fields
-
sortDesc
public <U extends Comparable<? super U>> Window<T> sortDesc(java.util.function.Function<T,U> sortField)
从接口复制的说明:WindowSort windows in descending order according to specified fields
-
sort
public Window<T> sort(Comparator<T> comparator)
从接口复制的说明:Windowsort window by Comparator
-
roundBetween
public Window<T> roundBetween(WindowRange start, WindowRange end)
从接口复制的说明:WindowSpecify window range- 指定者:
roundBetween在接口中Window<T>- 参数:
start- window start rangeend- window end range
-
roundBefore2CurrentRow
public Window<T> roundBefore2CurrentRow(int n)
从接口复制的说明:WindowSpecify window range this range is form the first n lines of the current row to the current row- 指定者:
roundBefore2CurrentRow在接口中Window<T>- 参数:
n- The first n lines of the current row
-
roundCurrentRow2After
public Window<T> roundCurrentRow2After(int n)
从接口复制的说明:WindowSpecify window range this range is form the current row to the last n row of the current row- 指定者:
roundCurrentRow2After在接口中Window<T>- 参数:
n- the last n row of the current row
-
roundCurrentRow2EndRow
public Window<T> roundCurrentRow2EndRow()
从接口复制的说明:WindowSpecify window range this range is form the current row to the end row- 指定者:
roundCurrentRow2EndRow在接口中Window<T>
-
roundStartRow2CurrentRow
public Window<T> roundStartRow2CurrentRow()
从接口复制的说明:WindowSpecify window range this range is form the start row to the current row- 指定者:
roundStartRow2CurrentRow在接口中Window<T>
-
roundAllRow
public Window<T> roundAllRow()
从接口复制的说明:WindowSpecify window range this range is window all row- 指定者:
roundAllRow在接口中Window<T>
-
roundBeforeAfter
public Window<T> roundBeforeAfter(int before, int after)
从接口复制的说明:WindowSpecify window range this range is from before n row of current row to after n row of current row- 指定者:
roundBeforeAfter在接口中Window<T>- 参数:
before- before n row of current rowafter- after n row of current row
-
-