public static class WindowOptions.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
WindowOptions |
build() |
WindowOptions.Builder |
following(Scalar following)
Set the relative number following the current row for range window
|
WindowOptions.Builder |
minPeriods(int minPeriods)
Set the minimum number of observation required to evaluate an element.
|
WindowOptions.Builder |
orderByAscending() |
WindowOptions.Builder |
orderByColumnIndex(int index) |
WindowOptions.Builder |
orderByDescending() |
WindowOptions.Builder |
preceding(Scalar preceding)
Set the relative number preceding the current row for range window
|
WindowOptions.Builder |
timestampAscending()
Deprecated.
Use orderByAscending()
|
WindowOptions.Builder |
timestampColumnIndex(int index)
Deprecated.
Use orderByColumnIndex(int index)
|
WindowOptions.Builder |
timestampDescending()
Deprecated.
Use orderByDescending()
|
WindowOptions.Builder |
unboundedFollowing() |
WindowOptions.Builder |
unboundedPreceding() |
WindowOptions.Builder |
window(ColumnVector precedingCol,
ColumnVector followingCol)
Set the size of the window, one entry per row.
|
WindowOptions.Builder |
window(Scalar precedingScalar,
Scalar followingScalar)
Set the size of the range window.
|
public WindowOptions.Builder minPeriods(int minPeriods)
public WindowOptions.Builder window(ColumnVector precedingCol, ColumnVector followingCol)
precedingCol - the number of rows preceding the current row and
precedingCol will be live outside of WindowOptions.followingCol - the number of rows following the current row and
following will be live outside of WindowOptions.public WindowOptions.Builder window(Scalar precedingScalar, Scalar followingScalar)
precedingScalar - the relative number preceding the current row and
the precedingScalar will be live outside of WindowOptions.followingScalar - the relative number following the current row and
the followingScalar will be live outside of WindowOptions@Deprecated public WindowOptions.Builder timestampColumnIndex(int index)
public WindowOptions.Builder orderByColumnIndex(int index)
@Deprecated public WindowOptions.Builder timestampAscending()
public WindowOptions.Builder orderByAscending()
public WindowOptions.Builder orderByDescending()
@Deprecated public WindowOptions.Builder timestampDescending()
public WindowOptions.Builder unboundedPreceding()
public WindowOptions.Builder unboundedFollowing()
public WindowOptions.Builder preceding(Scalar preceding)
public WindowOptions.Builder following(Scalar following)
public WindowOptions build()
Copyright © 2023. All rights reserved.