libcudf
24.02.00
|
A wrapper class for operations on a dictionary column. More...
#include <dictionary_column_view.hpp>
Public Member Functions | |
dictionary_column_view (column_view const &dictionary_column) | |
Construct a new dictionary column view object from a column view. More... | |
dictionary_column_view (dictionary_column_view &&)=default | |
Move constructor. | |
dictionary_column_view (dictionary_column_view const &)=default | |
Copy constructor. | |
dictionary_column_view & | operator= (dictionary_column_view const &)=default |
Move assignment operator. More... | |
dictionary_column_view & | operator= (dictionary_column_view &&)=default |
Copy assignment operator. More... | |
column_view | parent () const noexcept |
Returns the parent column. More... | |
column_view | indices () const noexcept |
Returns the column of indices. More... | |
column_view | get_indices_annotated () const noexcept |
Returns a column_view combining the indices data with offset, size, and nulls from the parent. More... | |
column_view | keys () const noexcept |
Returns the column of keys. More... | |
data_type | keys_type () const noexcept |
Returns the cudf::data_type of the keys child column. More... | |
size_type | keys_size () const noexcept |
Returns the number of rows in the keys column. More... | |
Static Public Attributes | |
static constexpr size_type | indices_column_index {0} |
Index of the indices column of the dictionary column. | |
static constexpr size_type | keys_column_index {1} |
Index of the keys column of the dictionary column. | |
A wrapper class for operations on a dictionary column.
A dictionary column contains a set of keys and a column of indices. The keys are a sorted set of unique values for the column. The indices represent the corresponding positions of each element's value in the keys.
Definition at line 40 of file dictionary_column_view.hpp.
cudf::dictionary_column_view::dictionary_column_view | ( | column_view const & | dictionary_column | ) |
Construct a new dictionary column view object from a column view.
dictionary_column | The column view to wrap |
|
noexcept |
Returns a column_view combining the indices data with offset, size, and nulls from the parent.
|
noexcept |
Returns the column of indices.
|
noexcept |
Returns the column of keys.
|
noexcept |
Returns the number of rows in the keys column.
|
noexcept |
Returns the cudf::data_type of the keys child column.
|
default |
Copy assignment operator.
|
default |
Move assignment operator.
|
noexcept |
Returns the parent column.