public static class WindowOptions.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
WindowOptions |
build() |
WindowOptions.Builder |
minPeriods(int minPeriods)
Set the minimum number of observation required to evaluate an element.
|
WindowOptions.Builder |
timestampAscending() |
WindowOptions.Builder |
timestampColumnIndex(int index) |
WindowOptions.Builder |
timestampDescending() |
WindowOptions.Builder |
window(ColumnVector precedingCol,
ColumnVector followingCol)
Set the size of the window, one entry per row.
|
WindowOptions.Builder |
window(int preceding,
int following)
Set the size of the window.
|
public WindowOptions.Builder minPeriods(int minPeriods)
public WindowOptions.Builder window(ColumnVector precedingCol, ColumnVector followingCol)
precedingCol - the number of rows preceding the current row.followingCol - the number of rows following the current row.public WindowOptions.Builder timestampColumnIndex(int index)
public WindowOptions.Builder timestampAscending()
public WindowOptions.Builder timestampDescending()
public WindowOptions.Builder window(int preceding, int following)
preceding - the number of rows preceding the current rowfollowing - the number of rows following the current row.public WindowOptions build()
Copyright © 2020. All rights reserved.