Given a column-view of lists type, an instance of this class provides a wrapper on this compound column for list operations. More...
#include <lists_column_view.hpp>
Public Member Functions | |
lists_column_view (column_view const &lists_column) | |
lists_column_view (lists_column_view &&lists_view)=default | |
lists_column_view (const lists_column_view &lists_view)=default | |
lists_column_view & | operator= (lists_column_view const &)=default |
lists_column_view & | operator= (lists_column_view &&)=default |
column_view | parent () const |
Returns the parent column. | |
column_view | offsets () const |
Returns the internal column of offsets. More... | |
column_view | child () const |
Returns the internal child column. More... | |
column_view | get_sliced_child (rmm::cuda_stream_view stream) const |
Returns the internal child column, applying any offset from the root. More... | |
auto | child_begin () const noexcept |
Returns iterator to the beginning of the ordered sequence of child column-views. | |
auto | child_end () const noexcept |
Returns iterator to the end of the ordered sequence of child column-views. | |
Static Public Attributes | |
static constexpr size_type | offsets_column_index {0} |
static constexpr size_type | child_column_index {1} |
Given a column-view of lists type, an instance of this class provides a wrapper on this compound column for list operations.
Definition at line 39 of file lists_column_view.hpp.
column_view cudf::lists_column_view::child | ( | ) | const |
Returns the internal child column.
cudf::logic | error if this is an empty column |
column_view cudf::lists_column_view::get_sliced_child | ( | rmm::cuda_stream_view | stream | ) | const |
Returns the internal child column, applying any offset from the root.
Slice/split offset values are only stored at the root level of a list column. So when doing computations on them, we need to apply that offset to the child columns when recursing. Most functions operating in a recursive manner on lists columns should be using get_sliced_child()
instead of child()
.
cudf::logic | error if this is an empty column |
column_view cudf::lists_column_view::offsets | ( | ) | const |
Returns the internal column of offsets.
cudf::logic | error if this is an empty column |