73 [[nodiscard]]
bool is_current_row()
const {
return _extent == extent_type::CURRENT_ROW; }
103 std::shared_ptr<scalar> _range_scalar{
nullptr};
105 range_window_bounds(
extent_type extent_, std::unique_ptr<scalar> range_scalar_);
Indicator for the logical data type of an element in a column.
An owning class to represent a singular value.
Class definitions for cudf::scalar.
Abstraction for window boundary sizes, to be used with grouped_range_rolling_window().
scalar const & range_scalar() const
Returns the underlying scalar value for the bounds.
bool is_current_row() const
Whether or not the window is bounded to the current row.
range_window_bounds(range_window_bounds const &)=default
Copy constructor.
static range_window_bounds current_row(data_type type)
Factory method to construct a window boundary limited to the value of the current row.
extent_type
The type of range_window_bounds.
@ UNBOUNDED
Bounds stretching to the first/last row in the entire group.
@ BOUNDED
Bounds defined as the first/last row that matches the current row.
static range_window_bounds unbounded(data_type type)
Factory method to construct an unbounded window boundary.
static range_window_bounds get(scalar const &boundary)
Factory method to construct a bounded window boundary.
bool is_unbounded() const
Whether or not the window is unbounded.