Public Member Functions | List of all members
cudf::detail::lists_column_device_view Class Reference

Given a column_device_view, an instance of this class provides a wrapper on this compound column for list operations. Analogous to list_column_view. More...

Inheritance diagram for cudf::detail::lists_column_device_view:
cudf::column_device_view

Public Member Functions

 lists_column_device_view (lists_column_device_view const &)=default
 Copy constructor.
 
 lists_column_device_view (lists_column_device_view &&)=default
 Move constructor.
 
lists_column_device_viewoperator= (lists_column_device_view const &)=default
 Copy assignment operator. More...
 
lists_column_device_viewoperator= (lists_column_device_view &&)=default
 Move assignment operator. More...
 
CUDF_HOST_DEVICE lists_column_device_view (column_device_view const &underlying_)
 Construct a new lists column device view object from a column device view. More...
 
column_device_view offsets () const
 Fetches the offsets column of the underlying list column. More...
 
size_type offset_at (size_type idx) const
 Fetches the list offset value at a given row index while taking column offset into account. More...
 
column_device_view child () const
 Fetches the child column of the underlying list column. More...
 
column_device_view get_sliced_child () const
 Fetches the child column of the underlying list column with offset and size applied. More...
 

Detailed Description

Given a column_device_view, an instance of this class provides a wrapper on this compound column for list operations. Analogous to list_column_view.

Definition at line 31 of file lists_column_device_view.cuh.

Constructor & Destructor Documentation

◆ lists_column_device_view()

CUDF_HOST_DEVICE cudf::detail::lists_column_device_view::lists_column_device_view ( column_device_view const &  underlying_)
inline

Construct a new lists column device view object from a column device view.

Parameters
underlying_The column device view to wrap

Definition at line 55 of file lists_column_device_view.cuh.

Member Function Documentation

◆ child()

column_device_view cudf::detail::lists_column_device_view::child ( ) const
inline

Fetches the child column of the underlying list column.

Returns
The child column of the underlying list column

Definition at line 99 of file lists_column_device_view.cuh.

◆ get_sliced_child()

column_device_view cudf::detail::lists_column_device_view::get_sliced_child ( ) const
inline

Fetches the child column of the underlying list column with offset and size applied.

Returns
The child column sliced relative to the parent's offset and size

Definition at line 109 of file lists_column_device_view.cuh.

◆ offset_at()

size_type cudf::detail::lists_column_device_view::offset_at ( size_type  idx) const
inline

Fetches the list offset value at a given row index while taking column offset into account.

Parameters
idxThe row index to fetch the list offset value at
Returns
The list offset value at a given row index while taking column offset into account

Definition at line 89 of file lists_column_device_view.cuh.

◆ offsets()

column_device_view cudf::detail::lists_column_device_view::offsets ( ) const
inline

Fetches the offsets column of the underlying list column.

Returns
The offsets column of the underlying list column

Definition at line 77 of file lists_column_device_view.cuh.

◆ operator=() [1/2]

lists_column_device_view& cudf::detail::lists_column_device_view::operator= ( lists_column_device_view &&  )
default

Move assignment operator.

Returns
The reference to this lists column device view

◆ operator=() [2/2]

lists_column_device_view& cudf::detail::lists_column_device_view::operator= ( lists_column_device_view const &  )
default

Copy assignment operator.

Returns
The reference to this lists column device view

The documentation for this class was generated from the following file: