Abstraction for window boundary sizes, to be used with grouped_range_rolling_window()
.
More...
#include <range_window_bounds.hpp>
Abstraction for window boundary sizes, to be used with grouped_range_rolling_window()
.
Similar to window_bounds
in grouped_rolling_window()
, range_window_bounds
represents window boundaries for use with grouped_range_rolling_window()
. A window may be specified as one of the following:
- A fixed-width numeric scalar value. E.g. a) A
DURATION_DAYS
scalar, for use with a TIMESTAMP_DAYS
orderby column b) An INT32
scalar, for use with an INT32
orderby column
- "unbounded", indicating that the bounds stretch to the first/last row in the group.
- "current row", indicating that the bounds end at the first/last row in the group that match the value of the current row.
Definition at line 38 of file range_window_bounds.hpp.
◆ extent_type
The type of range_window_bounds.
Enumerator |
---|
BOUNDED | Bounds defined as the first/last row that matches the current row.
|
UNBOUNDED | Bounds stretching to the first/last row in the entire group.
Bounds defined as the first/last row that falls within a specified range from the current row.
|
Definition at line 43 of file range_window_bounds.hpp.
◆ current_row()
Factory method to construct a window boundary limited to the value of the current row.
- Parameters
-
type | The datatype of the window boundary |
- Returns
- A "current row" window boundary object
◆ get()
Factory method to construct a bounded window boundary.
- Parameters
-
boundary | Finite window boundary |
- Returns
- A bounded window boundary object
◆ is_current_row()
bool cudf::range_window_bounds::is_current_row |
( |
| ) |
const |
|
inline |
Whether or not the window is bounded to the current row.
- Returns
- true If window is bounded to the current row
-
false If window is not bounded to the current row
Definition at line 73 of file range_window_bounds.hpp.
◆ is_unbounded()
bool cudf::range_window_bounds::is_unbounded |
( |
| ) |
const |
|
inline |
Whether or not the window is unbounded.
- Returns
- true If window is unbounded
-
false If window is of finite bounds
Definition at line 89 of file range_window_bounds.hpp.
◆ range_scalar()
scalar const& cudf::range_window_bounds::range_scalar |
( |
| ) |
const |
|
inline |
Returns the underlying scalar value for the bounds.
- Returns
- The underlying scalar value for the bounds
Definition at line 96 of file range_window_bounds.hpp.
◆ unbounded()
Factory method to construct an unbounded window boundary.
- Parameters
-
type | The datatype of the window boundary |
- Returns
- An unbounded window boundary object
The documentation for this struct was generated from the following file: