Package ai.rapids.cudf
Class WindowOptions.Builder
java.lang.Object
ai.rapids.cudf.WindowOptions.Builder
- Enclosing class:
- WindowOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Set the relative number following the current row for range windowminPeriods
(int minPeriods) Set the minimum number of observation required to evaluate an element.orderByColumnIndex
(int index) Set the relative number preceding the current row for range windowDeprecated.Use orderByAscending()timestampColumnIndex
(int index) Deprecated.Use orderByColumnIndex(int index)Deprecated.Use orderByDescending()window
(ColumnVector precedingCol, ColumnVector followingCol) Set the size of the window, one entry per row.Set the size of the range window.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
minPeriods
Set the minimum number of observation required to evaluate an element. If there are not enough elements for a given window a null is placed in the result instead. -
window
Set the size of the window, one entry per row. This does not take ownership of the columns passed in so you have to be sure that the lifetime of the column outlives this operation.- Parameters:
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.
-
window
Set the size of the range window.- Parameters:
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
-
timestampColumnIndex
Deprecated.Use orderByColumnIndex(int index) -
orderByColumnIndex
-
timestampAscending
Deprecated.Use orderByAscending() -
orderByAscending
-
orderByDescending
-
timestampDescending
Deprecated.Use orderByDescending() -
currentRowPreceding
-
currentRowFollowing
-
unboundedPreceding
-
unboundedFollowing
-
preceding
Set the relative number preceding the current row for range window- Returns:
- this for chaining
-
following
Set the relative number following the current row for range window- Returns:
- this for chaining
-
build
-